NetBSD/sys/rump/listsrcdirs

49 lines
1.4 KiB
Bash

#!/bin/sh
#
# $NetBSD: listsrcdirs,v 1.9 2013/09/19 16:16:03 pooka Exp $
#
#
# This script echoes the NetBSD source directories required to build rump
# kernels with TOOLS_BUILDRUMP=yes (used for example by buildrump.sh).
# Feed the output to whichever method you use to obtain NetBSD sources, e.g.
#
# ./listsrcdirs | xargs cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot -z3 co -P
#
precho ()
{
pfx=$1
shift
for arg in $* ; do echo ${pfx}${arg} ; done
}
precho src/ build.sh Makefile Makefile.inc
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 hijack dev net vfs
precho src/external/bsd/ flex mdocml byacc
precho src/external/cddl/ osnet
precho src/external/historical/ nawk
precho src/usr.bin/ make xinstall config mktemp sed tsort
precho src/usr.bin/ lorder join cksum m4 mkdep
precho src/usr.bin/ Makefile.inc rump_server rump_allserver
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
# pick a few useful archs, namely those mentioned in buildrump.sh
for x in amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc; do
precho src/sys/arch/${x}/ include ${x} Makefile
done
echo src/sys/arch/arm/arm32
echo src/sys/arch/Makefile
else
echo src/sys
fi