From a53e3a9f5fd9989b21055e6e546384bc868f0a2b Mon Sep 17 00:00:00 2001 From: Alexander Langer Date: Wed, 19 Jul 2000 15:11:26 +0000 Subject: [PATCH] Add hack for gzipped files that are not .tar.gz files and uncompress them The-Right-Way(tm). This whole uncompress-algorythm should be reworked, though. --- Tools/scripts/checksum.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tools/scripts/checksum.sh b/Tools/scripts/checksum.sh index 47a5e854e96b..4c27185e0d4d 100755 --- a/Tools/scripts/checksum.sh +++ b/Tools/scripts/checksum.sh @@ -49,9 +49,10 @@ while [ ! -z $1 ]; do if file $broken | grep "gzip compressed data" >/dev/null; then cd orig - tar -zxf ../$broken + tar -zxf ../$broken || gunzip -c ../$broken > ${broken%.gz} cd ../new - tar -zxf $PORTSDIR/distfiles/$broken + tar -zxf $PORTSDIR/distfiles/$broken || \ + gunzip -c $PORTSDIR/distfiles/$broken > ${broken%.gz} cd .. elif file $broken | grep "compress'd data 16 bits" >/dev/null; then cd orig