#!/bin/sh # ideas for this stolen from # http://archives.eyrie.org/software/devel/git-pbuilder set -e if [ -z "$DIST" ]; then DIST="sid" fi; if [ -n "$ARCH" ]; then ARCH="_$ARCH"; else ARCH="" fi; OPTIONS="" if [ "$DIST" = "etch" ]; then OPTIONS="--debian-etch-workaround" fi; pdebuild --buildresult .. \ --debbuildopts "-i\.git -I.git $*" \ -- --basepath ~/pbuilder/base_"${DIST}${ARCH}" ${OPTIONS}