diff options
Diffstat (limited to 'debuild-pbuilder')
-rw-r--r-- | debuild-pbuilder | 10 |
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 "$@" |