pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/scripts Only save PREFIX in...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4a810d66aa34
branches:  trunk
changeset: 533567:4a810d66aa34
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Sep 21 13:34:52 2007 +0000

description:
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:

 pkgtools/pbulk/files/pbulk/scripts/pkg-build |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 92989e9f7129 -r 4a810d66aa34 pkgtools/pbulk/files/pbulk/scripts/pkg-build
--- a/pkgtools/pbulk/files/pbulk/scripts/pkg-build      Fri Sep 21 13:28:29 2007 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-build      Fri Sep 21 13:34:52 2007 +0000
@@ -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@localhost>.
 # 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



Home | Main Index | Thread Index | Old Index