Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-master-status
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-19 09:33:46 +0200
committerErich Eckner <git@eckner.net>2017-09-19 09:33:46 +0200
commit9b11ea24a6d8ad1f7a5c6819a7d0da7d1803f7f7 (patch)
treec589210c619b49ed3c0c981c9b033cc9eb256719 /bin/build-master-status
parent87c1443c454dcab960a6656677cf79eb69a8a8b0 (diff)
bin/build-master-status: write todos to website
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status36
1 files changed, 36 insertions, 0 deletions
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}" > \