Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets only do the keep last in update builds and expl...
details: https://anonhg.NetBSD.org/src/rev/be4d83392769
branches: trunk
changeset: 785010:be4d83392769
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 18 00:00:55 2013 +0000
description:
only do the keep last in update builds and explain why.
diffstat:
distrib/sets/Makefile | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r 35d15255416a -r be4d83392769 distrib/sets/Makefile
--- a/distrib/sets/Makefile Sun Feb 17 23:56:52 2013 +0000
+++ b/distrib/sets/Makefile Mon Feb 18 00:00:55 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.85 2013/02/17 23:56:52 christos Exp $
+# $NetBSD: Makefile,v 1.86 2013/02/18 00:00:55 christos Exp $
# Experimental RCS METALOG versioning
# (Needs host's rcs(1) commands)
@@ -124,10 +124,17 @@
METALOG.unpriv= -M ${METALOG}.sanitised
sanitise_METALOG: .PHONY ${METALOG}.sanitised
${METALOG}.sanitised: ${METALOG}
+# We keep only the last entry for update builds, but for clean builds we
+# want to make sure we install files only once.
+.if ${MKUPDATE} != "no"
${TOOL_AWK} \
'{ a[$$1] = $$0; } END { for (f in a) print a[f]; }' ${METALOG} | \
sort | ${TOOL_MTREE} -CSM -k all -N ${NETBSDSRCDIR}/etc \
>${METALOG}.new
+.else
+ sort ${METALOG} | ${TOOL_MTREE} -CSM -k all -N ${NETBSDSRCDIR}/etc \
+ >${METALOG}.new
+.endif
mv ${METALOG}.new ${METALOG}.sanitised
.if defined(RCSMETALOG)
. ./metalog.subr; \
Home |
Main Index |
Thread Index |
Old Index