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-06-21 10:50:56 +0200
committerErich Eckner <git@eckner.net>2017-06-21 10:50:56 +0200
commit9bac2cc501cad9d14c5233e618fd6640b29d78ca (patch)
tree05359a4774cbeefd1ca9c18bb324e1baa06ef035 /bin/build-master-status
parent661a02415c20dbb7674fe0d7f8534dcb584598c8 (diff)
bin/build-master-status: add link to build logs
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-xbin/build-master-status22
1 files changed, 16 insertions, 6 deletions
diff --git a/bin/build-master-status b/bin/build-master-status
index 50b9af4..44596ef 100755
--- a/bin/build-master-status
+++ b/bin/build-master-status
@@ -186,11 +186,16 @@ fi
if [ -n "${broken_output}" ]; then
if ${nice}; then
- printf '<html>\n<body>\n<table>\n<tr><th>package</th><th>git revision</th><th>modification git revision</th><th>package repository</th><th>compilations</th></tr>\n' > \
- "${broken_output}"
- else
- : > "${broken_output}"
- fi
+ printf '<html>\n<body>\n<a href="build-logs/">build logs</a><br>\n<table>\n<tr>'
+ printf '<th>%s</th>' \
+ 'package' \
+ 'git revision' \
+ 'modification git revision' \
+ 'package repository' \
+ 'compilations'
+ printf '</tr>\n'
+ fi > \
+ "${broken_output}"
ls "${work_dir}/package-states" | \
grep '\.broken$' | \
sed 's|\.broken$||' | \
@@ -198,7 +203,12 @@ if [ -n "${broken_output}" ]; then
sed 's|^\(\(.\+\)\.\([^.]\+\)\.\([^.]\+\)\.\([^.]\+\)\)$|\1 \2 \3 \4 \5|' | \
while read -r sf pkg rev mod_rev repo; do
printf '<tr>'
- printf '<td>%s</td>' "${pkg}" "${rev}" "${mod_rev}" "${repo}" "$(wc -l < "${work_dir}/package-states/${sf}.broken")"
+ printf '<td>%s</td>' \
+ "${pkg}" \
+ "${rev}" \
+ "${mod_rev}" \
+ "${repo}" \
+ "$(wc -l < "${work_dir}/package-states/${sf}.broken")"
printf '</tr>\n'
done
else