aboutsummaryrefslogtreecommitdiff
path: root/pdebuild
diff options
context:
space:
mode:
authordancer <dancer>2001-12-20 06:30:46 +0000
committerdancer <dancer>2001-12-20 06:30:46 +0000
commit9e5efaecfa60df354e359970d96e0d373ac4a0c5 (patch)
treee5b7c5153e1c0d329871786c43974523e28a356a /pdebuild
parent898bef573df3e2e7ffb9bb756f7652180e32937e (diff)
downloadpbuilder-9e5efaecfa60df354e359970d96e0d373ac4a0c5.tar
pbuilder-9e5efaecfa60df354e359970d96e0d373ac4a0c5.tar.gz
added feature.
Can work with ../debian.
Diffstat (limited to 'pdebuild')
-rw-r--r--pdebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/pdebuild b/pdebuild
index 1c620c0..bc38aae 100644
--- a/pdebuild
+++ b/pdebuild
@@ -1,7 +1,13 @@
#! /bin/bash
set -e
-test -d ./debian
+if ! test -d ./debian ; then
+ if test -d ../debian; then
+ cd ..;
+ else
+ echo "This is (probably) not a Debian source package directory."
+ fi
+fi;
. /usr/lib/pbuilder/pbuilder-checkparams
$BUILDSOURCEROOTCMD dpkg-buildpackage -S -us -uc || true
$PBUILDERROOTCMD pbuilder build "$@" ../$(dpkg-parsechangelog|sed -n 's/^Source: //p')_$(dpkg-parsechangelog|sed -n 's/^Version: \(.*:\|\)//p').dsc