Add "make sortlists", for sorting the set lists. This may be

run manually, before committing changes to the lists files.
This commit is contained in:
apb 2013-10-27 09:29:42 +00:00
parent a6457c51d1
commit 442a1a4fdf
1 changed files with 12 additions and 1 deletions

View File

@ -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
#