aboutsummaryrefslogtreecommitdiff
path: root/debuild-pbuilder
diff options
context:
space:
mode:
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 "$@"