HardenedBSD/etc/etc.i386/EXTRACT_src.sh
Jordan K. Hubbard b83e1e51be Commit Rod's magic EXTRACT scripts to the tree so that we can work on
them.  These were al hand-copied over before.
1994-06-15 20:15:12 +00:00

42 lines
1.6 KiB
Bash
Executable File

#!/bin/sh
#
# This file will extract all of the FreeBSD sources into
# ${EXTRACT_TARGET}/usr/src if it is set, or /usr/src otherwise.
# If you do not want all the sources you can copy this file to your
# disk and edit it to comment out the ones you do not want. You
# will need to change the setting of SOURCEDIR to reflect where the srcdist
# directory is (dependent on where your cdrom is mounted,
# it might be /cdrom/tarballs/srcdist) .
#
if [ X"${SOURCEDIR}" = X"" ]; then
SOURCEDIR=.
fi
if [ X"${EXTRACT_TARGET}" = X"" ]; then
EXTRACT_TARGET=/
fi
cd $SOURCEDIR
# Note that base.aa is REQUIRED to be able to use the source tree for
# building in.
#
cat base.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
#
# The following are optional
#
cat bin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat contrib.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat etc.aa | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat games.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat gnu.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat include.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat lib.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
#NO_EXPORT#cat libcrypt.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat libexec.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat sbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat share.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat sys.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat usrbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -
cat usrsbin.* | gunzip | tar --directory ${EXTRACT_TARGET} -xpf -