diff options
author | dancer <dancer> | 2002-10-30 08:42:07 +0000 |
---|---|---|
committer | dancer <dancer> | 2002-10-30 08:42:07 +0000 |
commit | dc85401fcc7bfe69a192bc4d8b61aa5f37055f1e (patch) | |
tree | a1e819912d41ff5e767480736ed51c62f930d995 /debuild-pbuilder | |
parent | d2253141addb9872477a6925e7079b16d32e54f5 (diff) | |
download | pbuilder-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-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 "$@" |