freebsd-dev/release/scripts/extract_src.sh

19 lines
532 B
Bash
Raw Normal View History

1995-01-14 07:41:52 +00:00
#!/bin/sh
# $Id: extract_src.sh,v 1.7 1995/03/24 00:16:51 phk Exp $
1995-01-14 07:41:52 +00:00
PATH=/stand:$PATH
DDIR=/usr/src
1995-01-14 07:41:52 +00:00
1995-01-29 08:38:22 +00:00
for DIST in base srcbin etc games gnu include lib libexec release sbin lkm \
1995-01-27 07:49:46 +00:00
release share sys usrbin usrsbin; do
1995-03-24 00:16:51 +00:00
if [ -f ${DIST}/${DIST}.aa ]; then
1995-01-27 07:49:46 +00:00
echo "Extracting ${DIST} sources"
1995-03-24 00:16:51 +00:00
cat ${DIST}/${DIST}.??
| gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
elif [ -f ${DIST}.aa ]; then
echo "Extracting ${DIST} sources"
cat ${DIST}.??
| gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
1995-01-27 07:49:46 +00:00
fi
done
ln -fs /usr/src/sys /sys