pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/bulk _PRESERVE_WRKDIR can be set to "pack" to save ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/307f6ffbad65
branches: trunk
changeset: 519591:307f6ffbad65
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Oct 06 09:41:23 2006 +0000
description:
_PRESERVE_WRKDIR can be set to "pack" to save a .tar.gz archive of
WRKDIR in the directory where the other log files are.
diffstat:
mk/bulk/bsd.bulk-pkg.mk | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diffs (36 lines):
diff -r 44af7424526b -r 307f6ffbad65 mk/bulk/bsd.bulk-pkg.mk
--- a/mk/bulk/bsd.bulk-pkg.mk Fri Oct 06 08:19:47 2006 +0000
+++ b/mk/bulk/bsd.bulk-pkg.mk Fri Oct 06 09:41:23 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.122 2006/07/27 21:46:46 jlam Exp $
+# $NetBSD: bsd.bulk-pkg.mk,v 1.123 2006/10/06 09:41:23 rillig Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%NetBSD.org@localhost>
@@ -183,7 +183,9 @@
# Private variables
#
-# by default, clean up any broken packages
+# If this is "yes", the working directory will not be cleaned after building
+# the package. It can also be set to "pack" to save a .tar.gz file of the
+# working directory in BULKFILESDIR instead of keeping the files.
_PRESERVE_WRKDIR?= no
# create an escaped version of PKGPATH. We do this because
@@ -533,9 +535,14 @@
${ECHO} " $$nerrors ${PKGPATH}/${BROKENFILE} $$nbrokenby " >> ${BULKFILESDIR:Q}/${BROKENFILE:Q} \
) 2>&1 | ${TEE} -a ${_BROKENFILE:Q}; \
fi ; \
+ if [ ${_PRESERVE_WRKDIR} = "pack" ]; then \
+ (cd ${WRKDIR} \
+ && ${PAX} -wz -f ${_BULK_PKGLOGDIR}/wrkdir.tar.gz . \
+ ) || ${TRUE}; \
+ fi; \
case ${_PRESERVE_WRKDIR} in \
yes|YES) ;; \
- *) ${DO} ${RECURSIVE_MAKE} clean;; \
+ *) ${DO} ${RECURSIVE_MAKE} clean;; \
esac; \
fi
@if [ ! -f ${PKGFILE} ]; then \
Home |
Main Index |
Thread Index |
Old Index