Add a script to download, compile & install unzip
[msysgit.git] / src / unzip / release.sh
blobb780fb2c803964b3d0415e1c37f5789c7c3e0e5b
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 URL=ftp://tug.ctan.org/tex-archive/tools/zip/info-zip/src/
6 TAR=unzip552.tar.gz
7 DIR=unzip-5.52
9 if test ! -f $TAR
10 then
11 curl $URL$TAR > $TAR
12 fi &&
13 if test ! -d $DIR
14 then
15 tar xzvf $TAR
16 fi &&
17 (cd $DIR && make -f win32/Makefile.gcc) &&
18 FILES="funzip.exe unzip.exe unzipsfx.exe" &&
19 (cd $DIR && cp $FILES /bin/) &&
20 (cd /bin && git add $FILES && git commit -s -m "Install unzip 5.52" $FILES) || {
21 echo "Failed to install unzip"
22 exit 1