X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=git_pbuilder;h=abb1d3dfda44e094f139f1c72f95f6c90fe76059;hb=3d5241a316e3ff729b19b878b0841558120f75e9;hp=4f29af8a50d189b23f7740a54ddecfe2e4351452;hpb=6cb73c3a409d0874493dd1287c09b3fb13ba79d6;p=bin.git diff --git a/git_pbuilder b/git_pbuilder index 4f29af8..abb1d3d 100755 --- a/git_pbuilder +++ b/git_pbuilder @@ -9,18 +9,34 @@ 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; -OPTIONS="" +if [ -n "$BACKPORT" ]; then + BACKPORT="_bp"; +else + BACKPORT=""; +fi; + +OPTIONS="${OPTIONS:-}" if [ "$DIST" = "etch" ]; then - OPTIONS="--debian-etch-workaround" + OPTIONS="$OPTIONS --debian-etch-workaround" +fi; + +if [ -z "$BUILDRESULT" ]; then + BUILDRESULT=../ fi; -pdebuild --buildresult ../build-area \ +pdebuild --buildresult "$BUILDRESULT" \ --debbuildopts "-i\.git -I.git $*" \ - -- --basepath ~/pbuilder/base_"${DIST}${ARCH}" ${OPTIONS} + ${PDEBUILDOPTS} \ + -- --basepath ~/pbuilder/base_"${DIST}${BACKPORT}${ARCH}" ${OPTIONS} "$@"