index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-01-23 09:30:41 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-23 09:30:41 +0100 |
commit | f0c0454a6ad998bc994d8fdaa0be47944fbed4b7 (patch) | |
tree | 711d1f22582720927e7da68062fb87f5b8608494 /bin | |
parent | a92f2fcc7bd2b67c4ee5910b4f66edcadd5c9589 (diff) |
-rwxr-xr-x | bin/build-master-status-from-mysql | 27 |
diff --git a/bin/build-master-status-from-mysql b/bin/build-master-status-from-mysql index 2ed9a24..a0c2b4f 100755 --- a/bin/build-master-status-from-mysql +++ b/bin/build-master-status-from-mysql @@ -5,33 +5,6 @@ # shellcheck source=conf/default.conf . "${0%/*}/../conf/default.conf" -# shellcheck disable=SC2016 -{ - printf 'SELECT `build_slaves`.`name`,`build_slaves`.`operator`,`package_sources`.`pkgbase`,`build_slaves`.`last_connection`' - printf ' FROM `build_slaves`' - printf ' LEFT JOIN `build_assignments` ON' - printf ' `build_slaves`.`currently_building`=`build_assignments`.`id`' - printf ' LEFT JOIN `package_sources` ON' - printf ' `build_assignments`.`package_source`=`package_sources`.`id`' - printf ' ORDER BY `build_slaves`.`last_connection`' -} | \ - ${mysql_command} --html | \ - sed ' - s,</TR>,\0\n,g - ' | \ - sed ' - \,</TH></TR>$, { - s,<TH>pkgbase</TH>,<TH>currently building</TH>, - y,_, , - } - \,</TH></TR>$, ! { - s,<TD>NULL</TD>,<TD>\ </TD>, - } - 1 i <html><head><title>list of build slaves</title></head><body> - $ a </body></html> - ' | \ - sponge "${webserver_directory}/build-slaves.html" - { mysql_sanity_check || true { |