diff options
author | Erich Eckner <git@eckner.net> | 2017-09-01 09:03:18 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-01 09:03:18 +0200 |
commit | b695b160d891475a8d1f3fd050f9aec5deb33ba7 (patch) | |
tree | 6706fedcd0240c4034bc035b4117edde2a06fa3b /bin/build-master-status | |
parent | 906480fae444bfc44070836963ca613e438f5abe (diff) | |
download | builder-b695b160d891475a8d1f3fd050f9aec5deb33ba7.tar.xz |
bin/build-master-status: style
Diffstat (limited to 'bin/build-master-status')
-rwxr-xr-x | bin/build-master-status | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/bin/build-master-status b/bin/build-master-status index ad32880..49c28ac 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -196,9 +196,16 @@ looped_packages=$( if ${web}; then "${base_dir}/bin/calculate-dependent-packages" ( - printf '<html>\n<head>\n<title>Status of archlinux32 build master</title>\n</head>\n<body>\n' + printf '%s\n' \ + '<html>' \ + '<head>' \ + '<title>Status of archlinux32 build master</title>' \ + '</head>' \ + '<body>' sed 's|$|<br>|' "${tmp_dir}/build-master-status.html" - printf '</body>\n</html>' + printf '%s\n' \ + '</body>' \ + '</html>' ) | \ sponge "${tmp_dir}/build-master-status.html" end=$(($(date +%s)-7*24*60*60)) @@ -230,7 +237,15 @@ if ${web}; then "${tmp_dir}/statistics" { - printf '<html>\n<head>\n<title>List of broken package builds</title>\n</head>\n<body>\n<a href="build-logs/">build logs</a><br>\n<table>\n<tr>' + printf '%s\n' \ + '<html>' \ + '<head>' \ + '<title>List of broken package builds</title>' \ + '</head>' \ + '<body>' \ + '<a href="build-logs/">build logs</a><br>' \ + '<table>' \ + '<tr>' printf '<th>%s</th>' \ 'package' \ 'git revision' \ @@ -289,7 +304,10 @@ if ${web}; then "${reason}" printf '</tr>\n' done - printf '</table>\n</body>\n</html>\n' + printf '%s\n' \ + '</table>' \ + '</body>' \ + '</html>' } > \ "${tmp_dir}/broken-packages.html" |