]> git.donarmstrong.com Git - bin.git/commitdiff
* add git_pbuilder script
authorDon Armstrong <don@donarmstrong.com>
Wed, 16 Dec 2009 19:35:21 +0000 (19:35 +0000)
committerDon Armstrong <don@donarmstrong.com>
Wed, 16 Dec 2009 19:35:21 +0000 (19:35 +0000)
git_pbuilder [new file with mode: 0755]

diff --git a/git_pbuilder b/git_pbuilder
new file mode 100755 (executable)
index 0000000..465a9f6
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# ideas for this stolen from
+# http://archives.eyrie.org/software/devel/git-pbuilder
+
+set -e
+
+if [ -z "$DIST" ]; then
+    DIST="sid"
+fi;
+
+if [ -n "$ARCH" ]; then
+    ARCH="_$ARCH";
+else
+    ARCH=""
+fi;
+
+OPTIONS=""
+if [ "$DIST" = "etch" ]; then
+    OPTIONS="--debian-etch-workaround"
+fi;
+
+pdebuild --buildresult .. \
+    --debbuildopts "-i\.git -I.git $*" \
+    -- --basepath ~/pbuilder/base_"${DIST}${ARCH}" ${OPTIONS}
+