summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-11-28 20:08:37 +0000
committerrillig <rillig@pkgsrc.org>2005-11-28 20:08:37 +0000
commitd3b9bf035de795d601889102365b7f9d95da002c (patch)
treec8a3092455e4d51b570efc4665fd5cf6a924a288
parentf6a384af1ce9c8535629c100a1d7f7a00952690a (diff)
downloadpkgsrc-d3b9bf035de795d601889102365b7f9d95da002c.tar.gz
If the package-specific log directory is empty after building a package,
and ${BULKFILESDIR} != ${PKGSRCDIR}, try to remove the directory.
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
index bde56864439..ef48da94c3a 100644
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ b/mk/bulk/bsd.bulk-pkg.mk
@@ -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>
@@ -513,6 +513,10 @@ bulk-package:
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.