aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage9
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
+)