Module Name:    src
Committed By:   christos
Date:           Sun Feb 17 23:56:52 UTC 2013

Modified Files:
        src/distrib/sets: Makefile

Log Message:
keep only the last entry for each file, before sorting.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 src/distrib/sets/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/sets/Makefile
diff -u src/distrib/sets/Makefile:1.84 src/distrib/sets/Makefile:1.85
--- src/distrib/sets/Makefile:1.84	Tue Aug  9 11:02:30 2011
+++ src/distrib/sets/Makefile	Sun Feb 17 18:56:52 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.84 2011/08/09 15:02:30 jmcneill Exp $
+#	$NetBSD: Makefile,v 1.85 2013/02/17 23:56:52 christos Exp $
 
 # Experimental RCS METALOG versioning
 # (Needs host's rcs(1) commands)
@@ -124,8 +124,9 @@ clean_METALOG: .PHONY
 METALOG.unpriv= -M ${METALOG}.sanitised
 sanitise_METALOG: .PHONY ${METALOG}.sanitised
 ${METALOG}.sanitised: ${METALOG}
-	sort ${METALOG} | \
-	    ${TOOL_MTREE} -CSM -k all -N ${NETBSDSRCDIR}/etc \
+	${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
 	mv ${METALOG}.new ${METALOG}.sanitised
 .if defined(RCSMETALOG)

Reply via email to