]> git.donarmstrong.com Git - bin.git/commitdiff
update git_pbuilder
authorDon Armstrong <don@donarmstrong.com>
Wed, 12 Sep 2012 17:55:14 +0000 (17:55 +0000)
committerDon Armstrong <don@donarmstrong.com>
Wed, 12 Sep 2012 17:55:14 +0000 (17:55 +0000)
git_pbuilder

index 4f29af8a50d189b23f7740a54ddecfe2e4351452..1be9c6a4b08768aee694494211ed0242b19a5111 100755 (executable)
@@ -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} "$@"