aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>2000-07-19 15:11:26 +0000
committerAlexander Langer <alex@FreeBSD.org>2000-07-19 15:11:26 +0000
commita53e3a9f5fd9989b21055e6e546384bc868f0a2b (patch)
tree840004a0ca4fbc25c83676372ebe054b003ebc00 /Tools
parent7c5de09a4c8e2bf5f3564bfc7c19676aaa1c501e (diff)
downloadports-a53e3a9f5fd9989b21055e6e546384bc868f0a2b.tar.gz
ports-a53e3a9f5fd9989b21055e6e546384bc868f0a2b.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/checksum.sh5
1 files 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