]> git.donarmstrong.com Git - bin.git/blob - git_pbuilder
add reset usb bus command
[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 # no sense having a backport for sid
13 if [ "$DIST" == "sid" ]; then
14     BACKPORT="";
15 fi;
16
17 if [ -n "$ARCH" ]; then
18     ARCH="_$ARCH";
19 else
20     ARCH=""
21 fi;
22
23 if [ -n "$BACKPORT" ]; then
24     BACKPORT="_bp";
25 else
26     BACKPORT="";
27 fi;
28
29 OPTIONS="${OPTIONS:-}"
30 if [ "$DIST" = "etch" ]; then
31     OPTIONS="$OPTIONS --debian-etch-workaround"
32 fi;
33
34 if [ -z "$BUILDRESULT" ]; then
35     BUILDRESULT=../
36 fi;
37
38 pdebuild --buildresult "$BUILDRESULT" \
39     --debbuildopts "-i\.git -I.git $*" \
40     ${PDEBUILDOPTS} \
41     -- --basepath ~/pbuilder/base_"${DIST}${BACKPORT}${ARCH}" ${OPTIONS} "$@"
42