From: Don Armstrong Date: Wed, 12 Sep 2012 17:55:14 +0000 (+0000) Subject: update git_pbuilder X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=dbb24e92d8bcd2597e1afe5421351a1a3a2a8c74;p=bin.git update git_pbuilder --- diff --git a/git_pbuilder b/git_pbuilder index 4f29af8..1be9c6a 100755 --- a/git_pbuilder +++ b/git_pbuilder @@ -9,18 +9,33 @@ if [ -z "$DIST" ]; then DIST="sid" fi; +# no sense having a backport for sid +if [ "$DIST" == "sid" ]; then + BACKPORT=""; +fi; + if [ -n "$ARCH" ]; then ARCH="_$ARCH"; else ARCH="" fi; +if [ -n "$BACKPORT" ]; then + BACKPORT="_bp"; +else + BACKPORT=""; +fi; + OPTIONS="" if [ "$DIST" = "etch" ]; then OPTIONS="--debian-etch-workaround" fi; -pdebuild --buildresult ../build-area \ +if [ -z "$BUILDRESULT" ]; then + BUILDRESULT=../ +fi; + +pdebuild --buildresult "$BUILDRESULT" \ --debbuildopts "-i\.git -I.git $*" \ - -- --basepath ~/pbuilder/base_"${DIST}${ARCH}" ${OPTIONS} + -- --basepath ~/pbuilder/base_"${DIST}${BACKPORT}${ARCH}" ${OPTIONS} "$@"