1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

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.
This commit is contained in:
Alexander Langer 2000-07-19 15:11:26 +00:00
parent 7c5de09a4c
commit a53e3a9f5f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30878

View File

@ -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