From 403695a4c201383ec258529d32e21762769c1567 Mon Sep 17 00:00:00 2001 From: jkh Date: Thu, 17 Nov 1994 11:53:14 +0000 Subject: Eliminate the use of cpio in extraction. The stupid thing whines too much, and it doesn't support --unlink. I think it's time to nuke cpio completely out of the installation process, unless someone can think of a really good reason to keep it (and don't say multiple volume extraction since we a) don't use it anywhere anyway, and b) tar supports that too, now). --- release/extract.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'release/extract.sh') diff --git a/release/extract.sh b/release/extract.sh index e94b641..84c307f 100644 --- a/release/extract.sh +++ b/release/extract.sh @@ -1,6 +1,6 @@ #!/bin/sh -# $Id: extract.sh,v 1.9 1994/11/11 23:27:05 jkh Exp $ - +# $Id: extract.sh,v 1.10 1994/11/12 09:55:29 jkh Exp $ +PATH=/stand:$PATH DDIR=/ if [ -f bin_tgz.aa ] ; then @@ -8,10 +8,8 @@ if [ -f bin_tgz.aa ] ; then if [ -f $DDIR/etc/myname ]; then cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc fi - 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 ) + echo; echo "Extracting bindist, please wait." + cat bin_tgz.?? | gzip -c -d | tar --unlink -xvf - -C $DDIR if [ -f $DDIR/stand/etc/myname ]; then # Add back what the bindist nuked. cp $DDIR/stand/etc/myname $DDIR/etc @@ -29,6 +27,6 @@ do mv /sbin/init /sbin/nondes_init fi echo "Extracting $b" - cat $b.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV ) + cat $b.?? | gzip -c -d | tar --unlink -xvf - -C $DDIR fi done -- cgit v1.1