From dbb24e92d8bcd2597e1afe5421351a1a3a2a8c74 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 12 Sep 2012 17:55:14 +0000 Subject: [PATCH] update git_pbuilder --- git_pbuilder | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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} "$@" -- 2.39.5