mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
18 lines
341 B
Bash
18 lines
341 B
Bash
#!/bin/sh
|
|
# $Id: extract_src.sh,v 1.11 1995/03/25 05:03:40 phk Exp $
|
|
PATH=/stand:$PATH
|
|
DDIR=/usr/src
|
|
|
|
mkdir -p $DDIR
|
|
|
|
for T in src*.aa ; do
|
|
DIST=`basename $T .aa`
|
|
if [ -f ${DIST}.aa ]; then
|
|
echo "Extracting ${DIST} sources"
|
|
cat ${DIST}.?? |
|
|
gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
|
|
fi
|
|
done
|
|
rm -f /sys
|
|
ln -fs /usr/src/sys /sys
|