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:
parent
a6457c51d1
commit
442a1a4fdf
|
@ -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
|
# Experimental RCS METALOG versioning
|
||||||
# (Needs host's rcs(1) commands)
|
# (Needs host's rcs(1) commands)
|
||||||
|
@ -307,6 +307,17 @@ makesyspkgsums: .PHONY check_RELEASEDIR
|
||||||
makedeps: .PHONY
|
makedeps: .PHONY
|
||||||
${SETSCMD} ./syspkgdeps all >${.CURDIR}/deps
|
${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
|
# MAIN ENTRY POINTS
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue