diff options
author | EuAndreh <eu@euandre.org> | 2021-01-25 16:34:39 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-25 16:35:44 -0300 |
commit | 69f316eca8925de4cc412796291895dfd9577e35 (patch) | |
tree | 35ea95943ec571345380e0f9fa93c9e4c0ccc111 /build-aux/assert-todos.sh | |
parent | TODOs.md: Add task-f4258dc4-22aa-408d-a0b1-953f654e0623 (diff) | |
download | remembering-69f316eca8925de4cc412796291895dfd9577e35.tar.gz remembering-69f316eca8925de4cc412796291895dfd9577e35.tar.xz |
mv build-aux/assert-todos.sh build-aux/workflow/, updating to the latest version
Diffstat (limited to 'build-aux/assert-todos.sh')
-rwxr-xr-x | build-aux/assert-todos.sh | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/build-aux/assert-todos.sh b/build-aux/assert-todos.sh deleted file mode 100755 index fea8395..0000000 --- a/build-aux/assert-todos.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -set -eu - -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.md." - exit 1 -fi - -awk -F'{#' ' -BEGIN { - exitstatus = 0 - h2flag = 0 - h2status = "" - prevline = "" - idx = 0 - delete ids[0] -} -h2flag == 1 { - split($0, l, " ") - timelinestatus = l[2] - if (h2status != timelinestatus) { - print "h2/timeline status mismatch for line " NR-1 - print prevline - print $0 - exitstatus = 1 - } - h2status = "" - h2flag = 0 -} - -/^## / { - if (match($0, / \{#.*?\}$/) == 0) { - print "Missing ID for line " NR ":\n" $0 - exitstatus = 1 - } - id_with_prefix = substr($2, 0, length($2) - 1) - match(id_with_prefix, /^\w+-/) - id = substr(id_with_prefix, RLENGTH + 1) - if (id in arr) { - print "Duplicate ID: " id - exitstatus = 1 - } else { - arr[id] = 1 - } - - split($0, l, " ") - h2status = l[2] - h2flag = 1 - prevline = $0 -} - - -/^# Improvements$/ { - exit exitstatus -} -' TODOs.md |