shell prompt should not beep and only show MSYSTEM when non-standard.
[msysgit.git] / src / file / release.sh
blobe6207d2aff790676895c16a4994f16d30514340a
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 URL=ftp://ftp.astron.com/pub/file
6 TAR=file-5.04.tar.gz
7 DIR=file-5.04
8 MD5='accade81ff1cc774904b47c72c8aeea0'
10 if test ! -f $TAR
11 then
12 curl $URL/$TAR > $TAR
15 echo "$MD5 *$TAR" > $TAR.md5
16 md5sum -c --status $TAR.md5 || (echo "invalid checksum for $TAR"; exit 1)
18 if test ! -d $DIR
19 then
20 tar xzvf $TAR
21 fi &&
22 (cd $DIR &&
23 git init &&
24 git add . &&
25 git commit -m initial &&
26 git am ../patches/* &&
27 CFLAGS="-I/git/compat/regex -DGAWK -DNO_MBSUPPORT" \
28 ./configure --prefix=/mingw &&
29 make &&
30 index=$(/share/msysGit/pre-install.sh) &&
31 make install &&
32 /share/msysGit/post-install.sh $INDEX Install $DIR