From: Don Armstrong Date: Wed, 16 Dec 2009 19:35:21 +0000 (+0000) Subject: * add git_pbuilder script X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e3a592005903413b8d7bef39e7d71dd6e0781601;hp=8c92dd6242cab1b4c9dacdc7f9f791ddb4709722;p=bin.git * add git_pbuilder script --- diff --git a/git_pbuilder b/git_pbuilder new file mode 100755 index 0000000..465a9f6 --- /dev/null +++ b/git_pbuilder @@ -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} +