#!/bin/sh
#
# This file will extract all of the FreeBSD sources into /usr/src
# 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 your
# cdrom is mounted!
#
SOURCEDIR=.
DESTDIR=/

cd $SOURCEDIR

# Note that base.aa is REQUIRED to be able to use the source tree for
# building in.
#
cat base.aa	| gunzip | tar --directory ${DESTDIR} -xpf -

#
# The following are optional
#
cat bin.*	| gunzip | tar --directory ${DESTDIR} -xpf -
cat contrib.aa	| gunzip | tar --directory ${DESTDIR} -xpf -
cat etc.aa	| gunzip | tar --directory ${DESTDIR} -xpf -
cat games.*	| gunzip | tar --directory ${DESTDIR} -xpf -
cat gnu.*	| gunzip | tar --directory ${DESTDIR} -xpf -
cat include.aa	| gunzip | tar --directory ${DESTDIR} -xpf -
cat lib.*	| gunzip | tar --directory ${DESTDIR} -xpf -
#NO_EXPORT#cat libcrypt.aa	| gunzip | tar --directory ${DESTDIR} -xpf -
cat libexec.aa	| gunzip | tar --directory ${DESTDIR} -xpf -
cat sbin.*	| gunzip | tar --directory ${DESTDIR} -xpf -
cat share.*	| gunzip | tar --directory ${DESTDIR} -xpf -
cat sys.*	| gunzip | tar --directory ${DESTDIR} -xpf -
cat usrbin.*	| gunzip | tar --directory ${DESTDIR} -xpf -
cat usrsbin.*	| gunzip | tar --directory ${DESTDIR} -xpf -
