#!/bin/bash # get configuration BUILDSERVER_CONFIG_DIR="/etc/mage-buildserver" source ${BUILDSERVER_CONFIG_DIR}/buildserver.conf source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh RUNARCH="$1" if [[ -z ${RUNARCH} ]] then echo "No arch given." exit 1 fi runarch "${RUNARCH}" /bin/sh || die "${RUNARCH} enter"