aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordancer <dancer>2001-11-03 10:31:46 +0000
committerdancer <dancer>2001-11-03 10:31:46 +0000
commitea942f5ba11cae51487aacfed0898ef2a02c3b0b (patch)
treec1544741dd7d4ec27f9f8fbcbebc5004deb003b5
parent3bc67731c08e6f2dd7e35304fac79c487fe8664e (diff)
downloadpbuilder-ea942f5ba11cae51487aacfed0898ef2a02c3b0b.tar
pbuilder-ea942f5ba11cae51487aacfed0898ef2a02c3b0b.tar.gz
added many things.
-rwxr-xr-xpbuilder11
1 files changed, 9 insertions, 2 deletions
diff --git a/pbuilder b/pbuilder
index 80eaad6..86da5c6 100755
--- a/pbuilder
+++ b/pbuilder
@@ -3,6 +3,7 @@
# Copyright 2001 Junichi Uekawa
#Distributed under GPL version 2 or later
+set -e
test -z "$1" && (
. /usr/lib/pbuilder/pbuilder-modules
@@ -25,9 +26,9 @@ case "$1" in
clean)
. /etc/pbuilderrc
echo "Cleaning [$BUILDPLACE]"
- test -n "$BUILDPLACE" && rm -rf "$BUILDPLACE"/*
+ test -n "$BUILDPLACE" && rm -rf "$BUILDPLACE"/* || true
echo "Cleaning [$APTCACHE]"
- test -n "$APTCACHE" && rm -rf "$APTCACHE"/*
+ test -n "$APTCACHE" && rm -rf "$APTCACHE"/* || true
;;
login)
shift
@@ -38,6 +39,12 @@ case "$1" in
umountproc
cleanbuildplace
;;
+ debuild) # undocumented untested code.
+ shift;
+ . /usr/lib/pbuilder/pbuilder-checkparams
+ $BUILDSOURCEROOTCMD dpkg-buildpackage -S || true
+ $PBUILDERROOTCMD pbuilder build ../$(dpkg-parsechangelog|grep ^Source:| cut -d\ -f2 )_$(dpkg-parsechangelog|grep ^Version: | cut -d\ -f2).dsc
+ ;;
*)
. /usr/lib/pbuilder/pbuilder-modules
showhelp