X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=git_pbuilder;h=abb1d3dfda44e094f139f1c72f95f6c90fe76059;hb=dcce90e77c92202b5fadca48de6fd1cefc41ff79;hp=465a9f6c1c69d36bc28d730762db135a27b58192;hpb=e3a592005903413b8d7bef39e7d71dd6e0781601;p=bin.git diff --git a/git_pbuilder b/git_pbuilder index 465a9f6..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 .. \ +pdebuild --buildresult "$BUILDRESULT" \ --debbuildopts "-i\.git -I.git $*" \ - -- --basepath ~/pbuilder/base_"${DIST}${ARCH}" ${OPTIONS} + ${PDEBUILDOPTS} \ + -- --basepath ~/pbuilder/base_"${DIST}${BACKPORT}${ARCH}" ${OPTIONS} "$@"