1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/release/extract.sh
1994-11-10 02:24:47 +00:00

26 lines
661 B
Bash

#!/bin/sh
# $Id$
DDIR=/
if [ -f bin_tgz.aa ] ; then
# Temporary kludge for pathological bindist.
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
echo; echo "Extracting bindist, please wait. Ignore any messages from"
echo "cpio saying \"No such file or directory\". It doesn't know what"
echo "it's talking about.."; echo
cat bin_tgz.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV )
# Add back what the bindist nuked.
cp $DDIR/stand/etc/myname $DDIR/etc
cat $DDIR/stand/etc/hosts >> $DDIR/etc/hosts
fi
for i in *.aa
do
b=`basename $i .aa`
echo "Extracting $b"
if [ "$b" != bin_tgz ] ; then
cat $b.?? | zcat | ( cd $DDIR ; tar xf - )
fi
done