index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-09-19 09:33:46 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-19 09:33:46 +0200 |
commit | 9b11ea24a6d8ad1f7a5c6819a7d0da7d1803f7f7 (patch) | |
tree | c589210c619b49ed3c0c981c9b033cc9eb256719 /bin/build-master-status | |
parent | 87c1443c454dcab960a6656677cf79eb69a8a8b0 (diff) |
-rwxr-xr-x | bin/build-master-status | 36 |
diff --git a/bin/build-master-status b/bin/build-master-status index 3a33a54..498405e 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -378,6 +378,42 @@ if ${web}; then rm -f "${tmp_dir}/broken-packages-names" + { + printf '%s\n' \ + '<html>' \ + '<head>' \ + '<title>Todos in the build scripts</title>' \ + '</head>' \ + '<body>' + find "${base_dir}/bin/" "${base_dir}/conf/" -type f \ + -exec sed -n ' + /^\s*#\s*TODO:/{ + s/^\s*#\s*TODO:\s*// + :a + N + s/\s*\n\s*#/\n/ + ta + s/\n\n\+/\n/g + s/\n[^\n]*$/\n/ + i {} + = + p + }' {} \; | \ + sed ' + :a + N + /\n$/!ba + s|^[^\n]*/\([^/\n]\+/[^/\n]\+\)\n\([0-9]\+\)\n|\1 (line \2):\n| + ' | \ + sed ' + s|$|<br>| + ' + printf '%s\n' \ + '</body>' \ + '</html>' + } > \ + "${tmp_dir}/todos.html" + find "${tmp_dir}" -maxdepth 1 -type f | \ while read -r file; do cat "${file}" > \ |