diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-18 10:05:47 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-18 10:05:47 +0000 |
commit | 26dafa244c026e40a52946466950c4857482728a (patch) | |
tree | ac82332f5b5c1f56e5e30c9284e469f504129fa4 /release/extract.sh | |
parent | 7178816b0f6bdbb15ca4f2f70eccf10773dbe37a (diff) | |
download | FreeBSD-src-26dafa244c026e40a52946466950c4857482728a.zip FreeBSD-src-26dafa244c026e40a52946466950c4857482728a.tar.gz |
1. Use cpio instead of tar again. Bruce's comments made me paranoid.
2. Invoke sub-scripts using absolute paths.
Diffstat (limited to 'release/extract.sh')
-rw-r--r-- | release/extract.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/extract.sh b/release/extract.sh index 84c307f..793c1d2 100644 --- a/release/extract.sh +++ b/release/extract.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: extract.sh,v 1.10 1994/11/12 09:55:29 jkh Exp $ +# $Id: extract.sh,v 1.11 1994/11/17 11:53:12 jkh Exp $ PATH=/stand:$PATH DDIR=/ @@ -9,7 +9,7 @@ if [ -f bin_tgz.aa ] ; then cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc fi echo; echo "Extracting bindist, please wait." - cat bin_tgz.?? | gzip -c -d | tar --unlink -xvf - -C $DDIR + cat bin_tgz.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu ) if [ -f $DDIR/stand/etc/myname ]; then # Add back what the bindist nuked. cp $DDIR/stand/etc/myname $DDIR/etc @@ -27,6 +27,6 @@ do mv /sbin/init /sbin/nondes_init fi echo "Extracting $b" - cat $b.?? | gzip -c -d | tar --unlink -xvf - -C $DDIR + cat $b.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu ) fi done |