#!/bin/sh # report about status of build master - according to mysql database # 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,,\0\n,g ' | \ sed ' \,$, { s,