diff options
author | dancer <dancer> | 2001-11-03 10:31:46 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-11-03 10:31:46 +0000 |
commit | ea942f5ba11cae51487aacfed0898ef2a02c3b0b (patch) | |
tree | c1544741dd7d4ec27f9f8fbcbebc5004deb003b5 | |
parent | 3bc67731c08e6f2dd7e35304fac79c487fe8664e (diff) | |
download | pbuilder-ea942f5ba11cae51487aacfed0898ef2a02c3b0b.tar pbuilder-ea942f5ba11cae51487aacfed0898ef2a02c3b0b.tar.gz |
added many things.
-rwxr-xr-x | pbuilder | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |