aboutsummaryrefslogtreecommitdiff
path: root/debuild-pbuilder
diff options
context:
space:
mode:
authordancer <dancer>2002-10-30 08:42:07 +0000
committerdancer <dancer>2002-10-30 08:42:07 +0000
commitdc85401fcc7bfe69a192bc4d8b61aa5f37055f1e (patch)
treea1e819912d41ff5e767480736ed51c62f930d995 /debuild-pbuilder
parentd2253141addb9872477a6925e7079b16d32e54f5 (diff)
downloadpbuilder-dc85401fcc7bfe69a192bc4d8b61aa5f37055f1e.tar
pbuilder-dc85401fcc7bfe69a192bc4d8b61aa5f37055f1e.tar.gz
+ * debuild-pbuilder: a better handling of directory, copied from pdebuild.
Diffstat (limited to 'debuild-pbuilder')
-rw-r--r--debuild-pbuilder10
1 files changed, 10 insertions, 0 deletions
diff --git a/debuild-pbuilder b/debuild-pbuilder
index 9abf748..1efdb6b 100644
--- a/debuild-pbuilder
+++ b/debuild-pbuilder
@@ -1,5 +1,15 @@
#!/bin/bash
set -e
+
+while ! test -d ./debian -o "$(pwd)" = "/" ; do
+ cd ..;
+done
+
+if test ! -d ./debian; then
+ echo "Cannot find ./debian dir"
+ exit 1
+fi;
+
. /usr/lib/pbuilder/pbuilder-loadconfig
"$PBUILDERROOTCMD" /usr/lib/pbuilder/pbuilder-satisfydepends
/usr/bin/debuild "$@"