blob: e43200661ec6c16d9a78f348111da6d424280325 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/bin/bash -e
#
# cowbuilder helper for git-buildpackage
#
# This is only left here for compatibility. Better use git-pbuilder instead.
echo "***"
echo " This script is deprecated."
echo " Please switch to /usr/bin/git-pbuilder"
echo " See file:///usr/share/doc/git-buildpackage/manual-html/gbp.special.html#GBP.SPECIAL.PBUILDER"
echo "***"
DIST=${0/*gbp-cowbuilder-}
ACTION=$1
CONF=/etc/pbuilder/pbuilderrc.$DIST
WA_OPT='--debian-etch-workaround'
case $DIST in
sarge*|etch*)
echo "`basename $0`: Using $WA_OPT"
OPTS="$OPTS $WA_OPT"
;;
esac
case $ACTION in
update|create|login)
sudo cowbuilder --$ACTION --configfile=${CONF} --dist $DIST
;;
*)
# pass all options to dpkg-buildpackage:
pdebuild --configfile ${CONF} \
--pbuilder cowbuilder \
--buildresult ${GBP_BUILD_DIR}/.. \
--debbuildopts "-i -I $*" \
-- $OPTS
;;
esac
|