]> git.donarmstrong.com Git - bin.git/blobdiff - git_pbuilder
add reset usb bus command
[bin.git] / git_pbuilder
index 465a9f6c1c69d36bc28d730762db135a27b58192..abb1d3dfda44e094f139f1c72f95f6c90fe76059 100755 (executable)
@@ -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} "$@"