Tolerate both ways of doing the src-dists.

This commit is contained in:
Poul-Henning Kamp 1995-03-24 02:04:00 +00:00
parent 61530543c9
commit d20722885e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7308

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: extract_src.sh,v 1.6 1995/03/21 21:44:54 jkh Exp $
# $Id: extract_src.sh,v 1.7 1995/03/24 00:16:51 phk Exp $
PATH=/stand:$PATH
DDIR=/usr/src
@ -9,6 +9,10 @@ for DIST in base srcbin etc games gnu include lib libexec release sbin lkm \
echo "Extracting ${DIST} sources"
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 )
fi
done
ln -fs /usr/src/sys /sys