#!/bin/sh set -e # default place to run the pbuilder NETREK_SERVER_VANILLA_PBUILDER_ROOT=`pwd` # allow user to override if test -f ~/.netrek-server-vanilla-pbuilder; then source ~/.netrek-server-vanilla-pbuilder fi ROOT=${NETREK_SERVER_VANILLA_PBUILDER_ROOT} # configure a pbuilder instance or two for DISTRIBUTION in sarge etch; do mkdir -p \ ${ROOT}/pbuilder \ ${ROOT}/pbuilder/${DISTRIBUTION} \ ${ROOT}/pbuilder/${DISTRIBUTION}/aptcache \ ${ROOT}/pbuilder/${DISTRIBUTION}/build \ ${ROOT}/pbuilder/${DISTRIBUTION}/result # create pbuilder configuration file cat > ${ROOT}/pbuilder/${DISTRIBUTION}/rc <