freebsd-dev/release/scripts/extract_src.sh

18 lines
339 B
Bash
Raw Normal View History

1995-01-14 07:41:52 +00:00
#!/bin/sh
# $Id: extract_src.sh,v 1.12 1995/03/28 08:01:47 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 s*.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