[BACK]Return to listsrcdirs CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / rump

Annotation of src/sys/rump/listsrcdirs, Revision 1.17

1.2       pooka       1: #!/bin/sh
                      2: #
1.17    ! pooka       3: #      $NetBSD: listsrcdirs,v 1.16 2014/07/09 12:14:47 pooka Exp $
1.1       pooka       4: #
                      5:
                      6: #
1.16      pooka       7: # This script echoes the NetBSD source directories useful for
                      8: # rump kernels.
1.1       pooka       9: # Feed the output to whichever method you use to obtain NetBSD sources, e.g.
                     10: #
1.2       pooka      11: # ./listsrcdirs | xargs cvs -d anoncvs@anoncvs.netbsd.org:/cvsroot -z3 co -P
                     12: #
1.16      pooka      13: # Note: after making changes, test that "sh listsrcdirs all | sort | uniq -d"
                     14: # returns an empty set.
                     15: #
1.1       pooka      16:
1.15      pooka      17: # default echomode (for compat)
1.16      pooka      18: em='sys posix'
                     19:
                     20: # everything we support
                     21: all='sys posix usr'
1.15      pooka      22:
                     23: # mini-getopt (so that we don't have to with getopt vs. getopts
1.16      pooka      24: cvsmode=false
1.15      pooka      25: if [ "${1}" = "-c" ]; then
                     26:        cvsmode=true
                     27:        shift
                     28: fi
1.16      pooka      29:
                     30: [ ! -z "${*}" ] && em="${*}"
                     31: [ "$em" = all ] && em="${all}"
                     32: for x in ${em}; do
                     33:        for y in ${all}; do
                     34:                [ $x = $y ] && continue 2
                     35:        done
                     36:        echo invalid specifier $x
1.15      pooka      37:        exit 1
1.16      pooka      38: done
                     39:
                     40: iswanted ()
                     41: {
                     42:
                     43:        for x in ${em}; do
                     44:                if [ "$x" = "$1" ]; then
                     45:                        return 0
                     46:                fi
                     47:        done
                     48:        return 1
                     49: }
1.15      pooka      50:
                     51: lsrc ()
1.2       pooka      52: {
                     53:
1.15      pooka      54:        what=$1
                     55:        pfx=$2
                     56:        shift 2
1.16      pooka      57:
                     58:        iswanted ${what} && for arg in $* ; do echo src${pfx}${arg} ; done
1.2       pooka      59: }
                     60:
1.11      pooka      61: ARCHS="amd64 i386 x86 arm evbarm sparc sparc64 powerpc evbppc mips evbmips"
1.10      pooka      62: ARCHS_EXTRA="arm/arm32 Makefile"
                     63:
1.16      pooka      64: # sources necessary for building rump kernel components.  This list
                     65: # depends on TOOLS_BUILDRUMP=yes.
1.15      pooka      66: lsrc sys /                     build.sh Makefile Makefile.inc
                     67: lsrc sys /                     tools common include share/mk
                     68: lsrc sys /etc/                 Makefile.params master.passwd group
1.16      pooka      69: lsrc sys /lib/lib              c util
1.15      pooka      70: lsrc sys /external/bsd/                flex mdocml byacc
                     71: lsrc sys /external/cddl/       osnet
                     72: lsrc sys /external/historical/ nawk
                     73: lsrc sys /bin/                 cat
                     74: lsrc sys /usr.bin/             make xinstall config mktemp sed tsort
                     75: lsrc sys /usr.bin/             lorder join cksum m4 mkdep Makefile.inc
1.16      pooka      76: lsrc sys /usr.bin/             rpcgen rump_wmd
                     77: lsrc sys /usr.bin/             stat
1.15      pooka      78: lsrc sys /usr.sbin/            mtree
                     79:
1.16      pooka      80: # sources hosted in the NetBSD tree that are required/useful
                     81: # when targeting POSIX-y platforms
                     82: lsrc posix /lib/lib            rump rumpdev rumpnet rumpvfs
                     83: lsrc posix /lib/lib            rumpuser rumpclient rumphijack
                     84: lsrc posix /usr.bin/           rump_server rump_allserver shmif_dumpbus
                     85:
1.15      pooka      86: # assorted userspace sources, mostly for configuration & diagnostics
                     87: lsrc usr /lib/lib              crypt ipsec m npf pci prop
                     88: lsrc usr /lib/lib              pthread rmt y z
                     89: lsrc usr /libexec/             ld.elf_so
                     90: lsrc usr /bin/                 chmod cp dd df ed ln ls mkdir mv pax
                     91: lsrc usr /bin/                 rm rmdir
                     92: lsrc usr /sbin/                        cgdconfig chown
1.17    ! pooka      93: lsrc usr /sbin/                        disklabel dump
        !            94: lsrc usr /sbin/                        fsck fsck_ext2fs fsck_ffs fsck_msdos
1.15      pooka      95: lsrc usr /sbin/                        ifconfig mknod
1.17    ! pooka      96: lsrc usr /sbin/                        modstat mount
        !            97: lsrc usr /sbin/                        mount_ext2fs mount_ffs mount_msdos mount_tmpfs
        !            98: lsrc usr /sbin/                        newfs newfs_ext2fs newfs_msdos
1.15      pooka      99: lsrc usr /sbin/                        ping ping6 raidctl reboot
                    100: lsrc usr /sbin/                        rndctl route setkey sysctl umount
                    101: lsrc usr /usr.bin/             kdump ktrace
1.17    ! pooka     102: lsrc usr /usr.sbin/            arp dumpfs ndp npf pcictl vnconfig
1.15      pooka     103: lsrc usr /usr.sbin/            wlanctl
                    104: lsrc usr /external/bsd/                libpcap tcpdump wpa
                    105: lsrc usr /crypto/              Makefile.openssl
                    106: lsrc usr /crypto/dist/         ipsec-tools
                    107: lsrc usr /crypto/external/bsd/ openssl
                    108:
1.3       pooka     109:
                    110: # If -c is given, use CVS syntax to exclude large subdirectories
                    111: # of sys.  Otherwise just do it wholesale.
1.16      pooka     112: if ${cvsmode}; then
                    113:        iswanted sys && echo \!src/sys/arch src/sys
1.3       pooka     114:
                    115:        # pick a few useful archs, namely those mentioned in buildrump.sh
1.10      pooka     116:        for arch in ${ARCHS}; do
1.15      pooka     117:                lsrc sys /sys/arch/${arch}/ include ${arch} Makefile
1.10      pooka     118:        done
                    119:        for extra in ${ARCHS_EXTRA}; do
1.15      pooka     120:                lsrc sys /sys/arch/ ${extra}
1.3       pooka     121:        done
                    122: else
1.15      pooka     123:        lsrc sys / sys
1.3       pooka     124: fi

CVSweb <webmaster@jp.NetBSD.org>