diff options
author | EuAndreh <eu@euandre.org> | 2021-01-16 14:11:36 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-16 14:13:55 -0300 |
commit | 7f1b1a193bfef0936cfb3f0aee368f0cf21f078f (patch) | |
tree | 8d476ef3af0ceb87d64dc857cf190b5779c56df9 /build-aux/assert-todos.sh | |
parent | Update tfstate file (diff) | |
download | server-7f1b1a193bfef0936cfb3f0aee368f0cf21f078f.tar.gz server-7f1b1a193bfef0936cfb3f0aee368f0cf21f078f.tar.xz |
Move from TODOs.rst to TODOs.md
Diffstat (limited to 'build-aux/assert-todos.sh')
-rwxr-xr-x | build-aux/assert-todos.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build-aux/assert-todos.sh b/build-aux/assert-todos.sh index ebed4e8..ce6c95b 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.rst' | grep -v '^build-aux/assert-todos.sh' | grep -v '^build-aux/docbook-xsl/'; then +if git grep FIXME | grep -v '^TODOs.md' | 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.rst." + echo "You should write them down properly on TODOs.md." exit 1 fi KNOWN_IDS='' has_error=0 # shellcheck disable=2013 -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 +for todo in $(sed -e '/^\* Tasks$/,/^\* Improvements$/!d' TODOs.md | grep -nE '^\*\* .*$' | cut -d: -f1); do + if sed "${todo}q;d" TODOs.md | 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.rst)" + ID_LINE="$(sed "${line_n}q;d" TODOs.md)" if echo "$ID_LINE" | grep -q '^:CUSTOM_ID: .*$'; then ID="$(echo "$ID_LINE" | awk '{print $2}')" if echo "$KNOWN_IDS" | grep -q "$ID"; then |