Add a build script for Hany's Dos2Unix tool
[msysgit.git] / src / hd2u / release.sh
blob4e52546f303229277ae9a3248c5c38cb8698e010
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 URL=http://hany.sk/~hany/_data/hd2u
6 TAR=hd2u-1.0.3.tgz
7 DIR=hd2u-1.0.3
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 &&
18 git init &&
19 git add . &&
20 git commit -m initial &&
21 git am ../patches/* &&
22 ./configure --prefix=/mingw &&
23 make &&
24 index=$(/share/msysGit/pre-install.sh) &&
25 make install &&
26 /share/msysGit/post-install.sh $INDEX Install $DIR