summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-22 11:18:26 +0100
committerErich Eckner <git@eckner.net>2017-11-22 11:18:26 +0100
commitfa596d42e2ecc173afb318d2cd2b6662241f5a98 (patch)
tree298068d55947b205326f5414295ef3da1f939ead /bin
parentd7903e1f40710e7b6e977189372a8f9db3a0d1af (diff)
downloadbuilder-fa596d42e2ecc173afb318d2cd2b6662241f5a98.tar.xz
bin/build-master-status: fix layout of TODO-list
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-master-status10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 4c44d33..670985c 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -473,17 +473,15 @@ if ${web}; then
/^[^:]+:[0-9]+:\s*#\s*TODO:/{print ++i}
' | \
sed -n '
- s/^\([^:]\+:[0-9]\+:\)\s*#\s*TODO:\s*/\1/
+ s/^\([^:]\+\):\([0-9]\+\):\s*#\s*TODO:\s*/\1\n\2\n/
T
N
- s/^\([^:]\+:[0-9]\+:\)\(.*\)\n\([0-9]\+\)$/\1\3:\2/
+ s/\n\(.*\)\n\([0-9]\+\)$/\n\2\n\1/
:a
N
- s/\([^:]\+:\)\([0-9]\+:[^\n]*\S\)\s*\n\1[0-9]\+:\s*#/\1\2\n/
+ s/\n[^:\n]\+:[0-9]\+:[ \t]*#[ \t]*\(\S[^\n]*\)$/\n\1/
ta
- s/\n\n\+/\n/g
- s/\n[^\n]*$/\n/
- s/^\([^:\n]\+\):\([0-9]\+\):\([0-9]\+\):/\1\n\2\n\3\n/
+ s/\n[^:\n]\+:[0-9]\+:[^\n]*$/\n/
p
' | \
sed '