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} "$@"