diff options
author | alex <alex@FreeBSD.org> | 2000-07-19 23:11:26 +0800 |
---|---|---|
committer | alex <alex@FreeBSD.org> | 2000-07-19 23:11:26 +0800 |
commit | 347466cdafbfadd777543adb73c43e3ecd327deb (patch) | |
tree | ad05dd769de2f4a59cf7e9328c2481ea5440c9ec /Tools | |
parent | cad29b0d9c22ca29eb3a405c7d0ac15b5cc1151f (diff) | |
download | freebsd-ports-gnome-347466cdafbfadd777543adb73c43e3ecd327deb.tar.gz freebsd-ports-gnome-347466cdafbfadd777543adb73c43e3ecd327deb.tar.zst freebsd-ports-gnome-347466cdafbfadd777543adb73c43e3ecd327deb.zip |
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.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/checksum.sh | 5 |
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 |