Module Name:    src
Committed By:   apb
Date:           Sat Apr 11 15:09:32 UTC 2009

Modified Files:
        src/distrib/sets: Makefile makesrctars maketars

Log Message:
In various places that manipulate mtree specs, use "mtree -CS" to sort.
Remove some now-redundant standalone sort commands.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/distrib/sets/Makefile
cvs rdiff -u -r1.35 -r1.36 src/distrib/sets/makesrctars
cvs rdiff -u -r1.67 -r1.68 src/distrib/sets/maketars

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.65 src/distrib/sets/Makefile:1.66
--- src/distrib/sets/Makefile:1.65	Thu Nov 13 20:40:11 2008
+++ src/distrib/sets/Makefile	Sat Apr 11 15:09:32 2009
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.65 2008/11/13 20:40:11 apb Exp $
+#	$NetBSD: Makefile,v 1.66 2009/04/11 15:09:32 apb Exp $
 
 # The `all' target must appear before bsd.own.mk is pulled in.
 all:
@@ -89,7 +89,7 @@
 	( cat ${NETBSDSRCDIR}/etc/mtree/NetBSD.dist ; \
 		echo '/unset all' ; \
 		cat ${METALOG} ) \
-	| ${TOOL_MTREE} -C -k all -N ${NETBSDSRCDIR}/etc > ${METALOG}.new && \
+	| ${TOOL_MTREE} -CS -k all -N ${NETBSDSRCDIR}/etc > ${METALOG}.new && \
 		( rm -f ${METALOG} ; \
 		mv ${METALOG}.new ${METALOG} )
 	cat ${METALOG} | ${GREP} -v " optional" > ${.TARGET}

Index: src/distrib/sets/makesrctars
diff -u src/distrib/sets/makesrctars:1.35 src/distrib/sets/makesrctars:1.36
--- src/distrib/sets/makesrctars:1.35	Fri Apr  3 22:36:35 2009
+++ src/distrib/sets/makesrctars	Sat Apr 11 15:09:32 2009
@@ -1,6 +1,6 @@
 #! /bin/sh
 #
-#	$NetBSD: makesrctars,v 1.35 2009/04/03 22:36:35 perry Exp $
+#	$NetBSD: makesrctars,v 1.36 2009/04/11 15:09:32 apb Exp $
 #
 # makesrctars srcdir setdir
 #	Create source tarballs in setdir from the source under srcdir.
@@ -87,7 +87,7 @@
 		egrep='.'
 	fi
 	set -f
-	${MTREE} -c -X "${intmp}" | ${MTREE} -C -k type | \
+	${MTREE} -c -X "${intmp}" | ${MTREE} -CS -k type | \
 		${EGREP} -v 'type=link' | ${EGREP} ${egrep} | \
 		${SED} -e 's:type=file:& mode=0664:' \
 			-e 's:type=dir:& mode=0775:' \

Index: src/distrib/sets/maketars
diff -u src/distrib/sets/maketars:1.67 src/distrib/sets/maketars:1.68
--- src/distrib/sets/maketars:1.67	Fri Apr  3 22:36:35 2009
+++ src/distrib/sets/maketars	Sat Apr 11 15:09:32 2009
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: maketars,v 1.67 2009/04/03 22:36:35 perry Exp $
+# $NetBSD: maketars,v 1.68 2009/04/11 15:09:32 apb Exp $
 #
 # Make release tar files for some or all lists.  Usage:
 # maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
@@ -144,14 +144,13 @@
 	if [ -n "${metalog}" ]; then
 		${setfilesonly} && msg "Creating ${setlistdir}/set.${setname}"
 		${AWK} -f "${rundir}/getdirs.awk" "${SDIR}/flist.${setname}" \
-		    | ${SORT} -u > "${SDIR}/flist.${setname}.full"
+		    > "${SDIR}/flist.${setname}.full"
 		(
 			echo "/set uname=root gname=wheel"
 			${AWK} -f "${rundir}/join.awk" \
-				"${SDIR}/flist.${setname}.full" "${metalog}" \
-				    | ${SORT} -u
+				"${SDIR}/flist.${setname}.full" "${metalog}"
 			echo "./etc/mtree/set.${setname} type=file mode=0444"
-		) | ${MTREE} -C -k all -R time -N "${etcdir}" \
+		) | ${MTREE} -CS -k all -R time -N "${etcdir}" \
 		    > "${setlistdir}/set.${setname}"
 		# We deliberately do not add set.${setname} to ${metalog},
 		# because we depend on it as an input.

Reply via email to