#!/bin/bash # get configuration BUILDSERVER_CONFIG_DIR="/etc/mage-buildserver" source ${BUILDSERVER_CONFIG_DIR}/buildserver.conf source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh for arch in src ${BUILD_ARCH[*]} do if [ -f ${BUILDROOT}/.stamps/${arch}_bootstrap-ok ] then runarch "${arch}" mage upgrade || die "${arch} upgrade" else echo "Warning: No buildroot for arch '${arch}' bootstrapped. Doing nothing" fi done # regen mage-tree for all arches ${BUILDSERVER_LIB_DIR}/buildserver-setup-mage-tree.sh