freebsd-dev/release/scripts/extract_src.sh

18 lines
341 B
Bash
Raw Normal View History

1995-01-14 07:41:52 +00:00
#!/bin/sh
# $Id: extract_src.sh,v 1.11 1995/03/25 05:03:40 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-03-25 05:03:40 +00:00
mkdir -p $DDIR
for T in src*.aa ; do
DIST=`basename $T .aa`
if [ -f ${DIST}.aa ]; then
1995-01-27 07:49:46 +00:00
echo "Extracting ${DIST} sources"
1995-03-24 03:38:48 +00:00
cat ${DIST}.?? |
gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
1995-01-27 07:49:46 +00:00
fi
done
rm -f /sys
ln -fs /usr/src/sys /sys