shell prompt should not beep and only show MSYSTEM when non-standard.
[msysgit.git] / src / gzip / release.sh
blob9c79cb4000d695d4f3d3040a5b1723e8b67af33b
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 VERSION=1.2.4
6 DIR=gzip-$VERSION
7 URL=ftp://ftp.cs.tu-berlin.de/pub/gnu/gzip/$DIR.tar.gz
8 FILE=${URL##*/}
10 die () {
11 echo "$*" >&2
12 exit 1
15 test -d $DIR || {
16 test -f $FILE ||
17 curl -O $URL ||
18 die "Could not download $FILE"
20 tar xzvf $FILE && (
21 cd $DIR &&
22 git init &&
23 git add . &&
24 git commit -m "Import of $FILE"
26 } || die "Could not check out $FILE"
28 test $(cd $DIR && git rev-list HEAD | wc -l) -gt 1 ||
29 (cd $DIR && git am ../patches/*) ||
30 die "Could not apply patches"
32 (cd $DIR &&
33 INSTALL=/bin/install ./configure --prefix=/mingw &&
34 make &&
35 index=$(/share/msysGit/pre-install.sh) &&
36 make install &&
37 /share/msysGit/post-install.sh $index "Install $FILE"
38 ) || die "Could not install $FILE"