From 86f09d94eaea6eb0a84a0dc18e30b6675a0c7538 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 13 May 2009 22:07:36 +0200 Subject: [PATCH] Add a script to download, compile & install unzip Signed-off-by: Johannes Schindelin --- src/unzip/release.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/unzip/release.sh diff --git a/src/unzip/release.sh b/src/unzip/release.sh new file mode 100644 index 00000000..abec951b --- /dev/null +++ b/src/unzip/release.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +cd "$(dirname "$0")" + +URL=http://ftp.uni-koeln.de/util/arc/ +TAR=unzip60.tar.gz +DIR=unzip60 + +if test ! -f $TAR +then + curl $URL/$TAR > $TAR +fi && +if test ! -d $DIR +then + tar xzvf $TAR +fi && +(cd $DIR && make -f win32/Makefile.gcc) && +FILES="funzip.exe unzip.exe unzipsfx.exe" && +(cd $DIR && cp $FILES /bin/) && +(cd /bin && git add $FILES && git commit -s -m "Install $DIR" $FILES) || { + echo "Failed to install unzip" + exit 1 +} -- 2.11.4.GIT