pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/bulk If the package-specific log directory is empty...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de13c3c7ccb4
branches:  trunk
changeset: 503752:de13c3c7ccb4
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Nov 28 20:08:37 2005 +0000

description:
If the package-specific log directory is empty after building a package,
and ${BULKFILESDIR} != ${PKGSRCDIR}, try to remove the directory.

diffstat:

 mk/bulk/bsd.bulk-pkg.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r fc4c99a48d32 -r de13c3c7ccb4 mk/bulk/bsd.bulk-pkg.mk
--- a/mk/bulk/bsd.bulk-pkg.mk   Mon Nov 28 14:45:39 2005 +0000
+++ b/mk/bulk/bsd.bulk-pkg.mk   Mon Nov 28 20:08:37 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.bulk-pkg.mk,v 1.107 2005/11/24 12:14:32 rillig Exp $
+#      $NetBSD: bsd.bulk-pkg.mk,v 1.108 2005/11/28 20:08:37 rillig Exp $
 
 #
 # Copyright (c) 1999, 2000 Hubert Feyrer <hubertf%NetBSD.org@localhost>
@@ -513,6 +513,10 @@
        else \
                ${RM} -f ${_BUILDLOG:Q} ;\
        fi
+.if ${BULKFILESDIR} != ${PKGSRCDIR}
+       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
+       ${RMDIR} ${_BULK_PKGLOGDIR:Q} 2>/dev/null 1>&2 || ${TRUE}
+.endif
 
 # Install pkg - if possible from binary pkg (i.e. available & up-to-date)
 # else revert to the old recompiling.



Home | Main Index | Thread Index | Old Index