summaryrefslogtreecommitdiff
path: root/mk/bulk
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
commitaf0c8e1f5ebfcb070c909d0991f32545bc111bf0 (patch)
treec8a3092455e4d51b570efc4665fd5cf6a924a288 /mk/bulk
parent04705729523c6453e2259d81e7ae98750d78ce69 (diff)
downloadpkgsrc-af0c8e1f5ebfcb070c909d0991f32545bc111bf0.tar.gz
If the package-specific log directory is empty after building a package,
and ${BULKFILESDIR} != ${PKGSRCDIR}, try to remove the directory.
Diffstat (limited to 'mk/bulk')
-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.