aboutsummaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-15 14:45:35 -0300
committerEuAndreh <eu@euandre.org>2021-01-15 14:45:35 -0300
commit91fd69bf92742137cc52087aa7e7439999d77e66 (patch)
tree8e7034b5da0d293bcef0f9dbc93a996150d4144b /build-aux
parentvps.tf: terraform fmt (diff)
downloadserver-91fd69bf92742137cc52087aa7e7439999d77e66.tar.gz
server-91fd69bf92742137cc52087aa7e7439999d77e66.tar.xz
assert-todos.sh: TODOs.org -> TODOs.rst
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/assert-todos.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/build-aux/assert-todos.sh b/build-aux/assert-todos.sh
index 3fe513a..ebed4e8 100755
--- a/build-aux/assert-todos.sh
+++ b/build-aux/assert-todos.sh
@@ -1,22 +1,22 @@
#!/bin/sh -eu
-if git grep FIXME | grep -v '^TODOs.org' | grep -v '^build-aux/assert-todos.sh' | grep -v '^build-aux/docbook-xsl/'; then
+if git grep FIXME | grep -v '^TODOs.rst' | grep -v '^build-aux/assert-todos.sh' | grep -v '^build-aux/docbook-xsl/'; then
echo "Found dangling FIXME markers on the project."
- echo "You should write them down properly on TODOs.org."
+ echo "You should write them down properly on TODOs.rst."
exit 1
fi
KNOWN_IDS=''
has_error=0
# shellcheck disable=2013
-for todo in $(sed -e '/^\* Tasks$/,/^\* Improvements$/!d' TODOs.org | grep -nE '^\*\* .*$' | cut -d: -f1); do
- if sed "${todo}q;d" TODOs.org | grep -qE '^\*\* (CANCELLED|DONE)'; then
+for todo in $(sed -e '/^\* Tasks$/,/^\* Improvements$/!d' TODOs.rst | grep -nE '^\*\* .*$' | cut -d: -f1); do
+ if sed "${todo}q;d" TODOs.rst | grep -qE '^\*\* (CANCELLED|DONE)'; then
ID_OFFSET=3
else
ID_OFFSET=2
fi
line_n="$((todo+ID_OFFSET))"
- ID_LINE="$(sed "${line_n}q;d" TODOs.org)"
+ ID_LINE="$(sed "${line_n}q;d" TODOs.rst)"
if echo "$ID_LINE" | grep -q '^:CUSTOM_ID: .*$'; then
ID="$(echo "$ID_LINE" | awk '{print $2}')"
if echo "$KNOWN_IDS" | grep -q "$ID"; then