diff options
author | dancer <dancer> | 2001-08-27 11:37:42 +0000 |
---|---|---|
committer | dancer <dancer> | 2001-08-27 11:37:42 +0000 |
commit | 0b660f6719184fed8eb5cfcf25f910210fe31b5a (patch) | |
tree | a0c763ee9d2588092fce2a2e8526eeb7d710b6c7 /pbuilder-buildpackage | |
parent | 296a5a338a397c6cf8c77a813dc29bd1b7ce8b19 (diff) | |
download | pbuilder-0b660f6719184fed8eb5cfcf25f910210fe31b5a.tar pbuilder-0b660f6719184fed8eb5cfcf25f910210fe31b5a.tar.gz |
added buildresult feature and fixed the readlink typo
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 060c88e..091c023 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -54,3 +54,12 @@ checkbuilddep echo Building the package $CHROOTEXEC /bin/sh -c "(cd tmp/buildd/*/; dpkg-buildpackage)" umountproc + +test -n "$BUILDRESULT" && ( + mkdir -p "$BUILDRESULT" + if [ -d "$BUILDRESULT" ]; then + cp $BUILDPLACE/tmp/buildd/* $BUILDRESULT + else + echo "Error: BUILDRESULT=[$BUILDRESULT] and is not a directory." >&2 + fi +) |