Add a script to install the file(1) tool
[msysgit/kusma.git] / src / file / release.sh
blobe1e5d726637a6c6ad09a1ce77e3cd6fdee717696
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 URL=ftp://ftp.astron.com/pub/file
6 TAR=file-5.03.tar.gz
7 DIR=file-5.03
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 CFLAGS=-I/git/compat/regex ./configure --prefix=/mingw &&
23 make &&
24 index=$(/share/msysGit/pre-install.sh) &&
25 make install &&
26 /share/msysGit/post-install.sh $INDEX Install $DIR