diff options
author | rillig <rillig@pkgsrc.org> | 2007-09-21 13:34:52 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-09-21 13:34:52 +0000 |
commit | a51fc4af4ab62bffe27e1ee8d5aba01928855422 (patch) | |
tree | 6c85cafdc58620b93492933bab65077717bb4084 | |
parent | b4ed606255043258827e83f9503a1fb63500f9ae (diff) | |
download | pkgsrc-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.
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/pkg-build | 6 |
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 |