#!/bin/sh # # $NetBSD: listsrcdirs,v 1.12 2013/12/20 10:13:24 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 } ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips" ARCHS_EXTRA="arm/arm32 Makefile" 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 Makefile.inc precho src/usr.bin/ rump_server rump_allserver shmif_dumpbus 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 arch in ${ARCHS}; do precho src/sys/arch/${arch}/ include ${arch} Makefile done for extra in ${ARCHS_EXTRA}; do echo src/sys/arch/${extra} done else echo src/sys fi