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-05 15:12:19 +0200
committerErich Eckner <git@eckner.net>2017-09-05 15:12:19 +0200
commit15195bc33f0e72d231afa95c06e0aec7a384d6a6 (patch)
treedf07bfe6f1789124316d9363c97512564b942bec /bin/build-master-status
parentab3dd8fcfe75d8df0c357a26ca748318db6b1462 (diff)
bin/build-master-status: add info about currently building packages
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status23
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 4c34f93..080cc15 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -200,10 +200,33 @@ if ${web}; then
'<html>' \
'<head>' \
'<title>Status of archlinux32 build master</title>' \
+ '<link rel="stylesheet" type="text/css" href="/static/style.css">' \
'</head>' \
'<body>'
sed 's|$|<br>|' "${tmp_dir}/build-master-status.html"
printf '%s\n' \
+ '<br>' \
+ 'currently building packages:<br>' \
+ '<table>'
+ printf '<tr>'
+ printf '<th>%s</th>' \
+ 'since (UTC)' \
+ 'pkgname' \
+ 'git revision' \
+ 'modification git revision' \
+ 'package repository' \
+ 'build slave'
+ printf '</tr>'
+ find "${work_dir}/package-states" -maxdepth 1 -name '*.locked' -printf '<tr><td>%TY-%Tm-%Td %TH:%TM</td><td>%f ' -execdir cat {} \; | \
+ sed '
+ s|$|</td></tr>|
+ s|\.locked |</td><td>|
+ s|\.\([^.]\+\)$|</td><td>\1|
+ s|\.\([^.]\+\)$|</td><td>\1|
+ s|\.\([^.]\+\)$|</td><td>\1|
+ '
+ printf '%s\n' \
+ '</table>' \
'</body>' \
'</html>'
) | \