Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/sets Add "make sortlists", for sorting the set lists...
details: https://anonhg.NetBSD.org/src/rev/17efec1009d5
branches: trunk
changeset: 790932:17efec1009d5
user: apb <apb%NetBSD.org@localhost>
date: Sun Oct 27 09:29:42 2013 +0000
description:
Add "make sortlists", for sorting the set lists. This may be
run manually, before committing changes to the lists files.
diffstat:
distrib/sets/Makefile | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (27 lines):
diff -r b7a38180499a -r 17efec1009d5 distrib/sets/Makefile
--- a/distrib/sets/Makefile Sun Oct 27 09:27:23 2013 +0000
+++ b/distrib/sets/Makefile Sun Oct 27 09:29:42 2013 +0000
@@ -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 @@
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
#
Home |
Main Index |
Thread Index |
Old Index