when sorting the metalog for unpriv builds, first run it through sort so

mtree doesn't fail with:
  nbmtree: .: missing directory in specification
  nbmtree: failed at line 1 of the specification
This commit is contained in:
jmcneill 2011-08-09 15:02:30 +00:00
parent 9a2bdb0d5f
commit 539ce5845b

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.83 2011/02/16 06:14:01 uebayasi Exp $
# $NetBSD: Makefile,v 1.84 2011/08/09 15:02:30 jmcneill Exp $
# Experimental RCS METALOG versioning
# (Needs host's rcs(1) commands)
@ -124,7 +124,8 @@ clean_METALOG: .PHONY
METALOG.unpriv= -M ${METALOG}.sanitised
sanitise_METALOG: .PHONY ${METALOG}.sanitised
${METALOG}.sanitised: ${METALOG}
${TOOL_MTREE} -CSM -k all -N ${NETBSDSRCDIR}/etc <${METALOG} \
sort ${METALOG} | \
${TOOL_MTREE} -CSM -k all -N ${NETBSDSRCDIR}/etc \
>${METALOG}.new
mv ${METALOG}.new ${METALOG}.sanitised
.if defined(RCSMETALOG)