Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump Add -c, which produces cvs syntax output for the ne...
details: https://anonhg.NetBSD.org/src/rev/4cf6f2862e76
branches: trunk
changeset: 785350:4cf6f2862e76
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Mar 10 14:15:54 2013 +0000
description:
Add -c, which produces cvs syntax output for the necessary subset
of src/sys.
diffstat:
sys/rump/listsrcdirs | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r 289e235ec708 -r 4cf6f2862e76 sys/rump/listsrcdirs
--- a/sys/rump/listsrcdirs Sun Mar 10 11:21:05 2013 +0000
+++ b/sys/rump/listsrcdirs Sun Mar 10 14:15:54 2013 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: listsrcdirs,v 1.2 2013/03/10 09:18:50 pooka Exp $
+# $NetBSD: listsrcdirs,v 1.3 2013/03/10 14:15:54 pooka Exp $
#
#
@@ -10,9 +10,6 @@
#
# ./listsrcdirs | xargs cvs -d anoncvs%anoncvs.netbsd.org@localhost:/cvsroot -z3 co -P
#
-# TODO: avoid checkout of sys/arch, since only sys/arch/*/include
-# is required.
-#
precho ()
{
@@ -23,7 +20,7 @@
}
precho src/ build.sh Makefile Makefile.inc
-precho src/ sys tools common include share/mk
+precho src/ tools common include share/mk
precho src/etc/ Makefile.params master.passwd group
precho src/lib/lib c util rump
precho src/lib/librump user client dev net vfs
@@ -33,3 +30,17 @@
precho src/usr.bin/ make xinstall config mktemp sed tsort
precho src/usr.bin/ lorder join cksum m4 mkdep
precho src/usr.sbin/ mtree
+
+# If -c is given, use CVS syntax to exclude large subdirectories
+# of sys. Otherwise just do it wholesale.
+if [ "${1}" = '-c' ]; then
+ echo \!src/sys/arch \!src/sys/dev/microcode \
+ \!src/sys/dev/pci src/sys
+
+ # pick a few useful archs, namely those mentioned in buildrump.sh
+ for x in amd64 i386 x86 arm evbarm sparc sparc64 ; do
+ precho src/sys/arch/${x}/ include ${x}
+ done
+else
+ echo src/sys
+fi
Home |
Main Index |
Thread Index |
Old Index