summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2007-09-21 13:34:52 +0000
committerrillig <rillig>2007-09-21 13:34:52 +0000
commit674449fe5d2bac718ba791e3795fda0cfe9af7d5 (patch)
tree6c85cafdc58620b93492933bab65077717bb4084
parent0ce1b23cf46eb8d6c557ef3c6cb5b1013dbba96f (diff)
downloadpkgsrc-674449fe5d2bac718ba791e3795fda0cfe9af7d5.tar.gz
Only save PREFIX in a tar file if the package has reached the install
phase. This saves some disk space, and in most cases the contents of PREFIX is not interesting before. Added quotes around keep_wrkdir and keep_prefix because they were missing in a previous version of the example configuration file.
-rwxr-xr-xpkgtools/pbulk/files/pbulk/scripts/pkg-build6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/pkg-build b/pkgtools/pbulk/files/pbulk/scripts/pkg-build
index d47d3aa8d8f..ae6363489dc 100755
--- a/pkgtools/pbulk/files/pbulk/scripts/pkg-build
+++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-build
@@ -1,5 +1,5 @@
#!@SH@
-# $NetBSD: pkg-build,v 1.5 2007/09/07 15:51:53 rillig Exp $
+# $NetBSD: pkg-build,v 1.6 2007/09/21 13:34:52 rillig Exp $
#
# Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
# All rights reserved.
@@ -33,10 +33,10 @@
. @PBULK_CONFIG@
cleanup() {
- if [ $keep_wrkdir = yes ]; then
+ if [ "$keep_wrkdir" = yes ]; then
${make} pbulk-save-wrkdir INTO=${bulklog}/${pkgname}/wrkdir.tar.gz
fi
- if [ $keep_prefix = yes ]; then
+ if [ "$keep_prefix" = yes ] && [ -f ${bulklog}/${pkgname}/install.log ]; then
tar cfz ${bulklog}/${pkgname}/prefix.tar.gz ${prefix}
fi
${make} clean > /dev/null 2>&1 || true