summaryrefslogtreecommitdiff
path: root/pkgtools/pbulk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-09-21 13:34:52 +0000
committerrillig <rillig@pkgsrc.org>2007-09-21 13:34:52 +0000
commita51fc4af4ab62bffe27e1ee8d5aba01928855422 (patch)
tree6c85cafdc58620b93492933bab65077717bb4084 /pkgtools/pbulk
parentb4ed606255043258827e83f9503a1fb63500f9ae (diff)
downloadpkgsrc-a51fc4af4ab62bffe27e1ee8d5aba01928855422.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.
Diffstat (limited to 'pkgtools/pbulk')
-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