]> git.donarmstrong.com Git - bin.git/blob - git_pbuilder
* update git_pbuilder
[bin.git] / git_pbuilder
1 #!/bin/sh
2
3 # ideas for this stolen from
4 # http://archives.eyrie.org/software/devel/git-pbuilder
5
6 set -e
7
8 if [ -z "$DIST" ]; then
9     DIST="sid"
10 fi;
11
12 if [ -n "$ARCH" ]; then
13     ARCH="_$ARCH";
14 else
15     ARCH=""
16 fi;
17
18 OPTIONS=""
19 if [ "$DIST" = "etch" ]; then
20     OPTIONS="--debian-etch-workaround"
21 fi;
22
23 pdebuild --buildresult ../build-area \
24     --debbuildopts "-i\.git -I.git $*" \
25     -- --basepath ~/pbuilder/base_"${DIST}${ARCH}" ${OPTIONS}
26