aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/dirs4
-rwxr-xr-xpbuilder-buildpackage9
-rwxr-xr-xpbuilder-checkparams7
-rw-r--r--pbuilder.14
-rwxr-xr-xpbuilderrc2
5 files changed, 23 insertions, 3 deletions
diff --git a/debian/dirs b/debian/dirs
index 6ddb17e..eb3c09d 100644
--- a/debian/dirs
+++ b/debian/dirs
@@ -1,4 +1,6 @@
usr/bin
usr/sbin
usr/lib/pbuilder
-var/cache/pbuilder/
+var/cache/pbuilder
+var/cache/pbuilder/result
+
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
+)
diff --git a/pbuilder-checkparams b/pbuilder-checkparams
index 19f79d8..6480ac6 100755
--- a/pbuilder-checkparams
+++ b/pbuilder-checkparams
@@ -6,7 +6,7 @@
while [ -n $1 ]; do
case "$1" in
--basetgz)
- BASETGZ=$(realink -f "$2");
+ BASETGZ=$(readlink -f "$2");
shift; shift;
;;
--buildplace)
@@ -25,6 +25,10 @@ while [ -n $1 ]; do
DISTRIBUTION="$2";
shift; shift;
;;
+ --buildresult)
+ BUILDRESULT=$(readlink -f "$2");
+ shift; shift;
+ ;;
--help)
cat <<EOF
Command Line Options:
@@ -33,6 +37,7 @@ Command Line Options:
--mirror [mirror location]
--http-proxy [proxy]
--distribution [distribution(woody/sid)]
+ --buildresult [location-to-copy-build-result]
EOF
exit 1;
;;
diff --git a/pbuilder.1 b/pbuilder.1
index 63b0cbe..569b911 100644
--- a/pbuilder.1
+++ b/pbuilder.1
@@ -38,6 +38,10 @@ Specifies the location where building and
updating and creation takes place. This is
a temporary work directory.
.TP
+.BI "--buildresult [" "location to put build result" "]"
+Specifiees the location the build result gets into,
+after building.
+.TP
.BI "--mirror [" "mirror location" "]"
Specifies the url of Debian mirror to be
specified in
diff --git a/pbuilderrc b/pbuilderrc
index b3e323a..6df7d41 100755
--- a/pbuilderrc
+++ b/pbuilderrc
@@ -6,4 +6,4 @@ BUILDPLACE=/var/cache/pbuilder/build/
MIRRORSITE=http://www.jp.debian.org/debian
#export http_proxy=http://your-proxy:8080/
USEPROC=yes
-
+BUILDRESULT=/var/cache/pbuilder/result/