Module Name: src
Committed By: apb
Date: Sun Oct 27 09:29:42 UTC 2013
Modified Files:
src/distrib/sets: Makefile
Log Message:
Add "make sortlists", for sorting the set lists. This may be
run manually, before committing changes to the lists files.
To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 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.88 src/distrib/sets/Makefile:1.89
--- src/distrib/sets/Makefile:1.88 Thu Feb 21 14:08:50 2013
+++ src/distrib/sets/Makefile Sun Oct 27 09:29:42 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2013/02/21 14:08:50 christos Exp $
+# $NetBSD: Makefile,v 1.89 2013/10/27 09:29:42 apb Exp $
# Experimental RCS METALOG versioning
# (Needs host's rcs(1) commands)
@@ -307,6 +307,17 @@ makesyspkgsums: .PHONY check_RELEASEDIR
makedeps: .PHONY
${SETSCMD} ./syspkgdeps all >${.CURDIR}/deps
+# Sort the lists files
+sortlists: .PHONY
+ find ${.CURDIR}/lists \! \( -name CVS -prune \) -type f -print \
+ | while read f ; do \
+ ${_MKSHMSG} "sorting $${f#${.CURDIR}/}" ; \
+ { grep '^#' "$$f" ; \
+ grep -v '^#' "$$f" | sort ; \
+ } >"$$f".tmp \
+ && mv "$$f".tmp "$$f" ; \
+ done
+
#
# MAIN ENTRY POINTS
#