net-installer: initialize the git-cheetah submodule
[msysgit.git] / src / libiconv / release.sh
blob8b0c3b1a8f1fa045061242c75bd0a00d0f281277
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 VERSION=1.14
6 DIR=libiconv-$VERSION
7 URL=http://ftp.gnu.org/pub/gnu/libiconv/$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 (cd $DIR &&
29 export am_cv_proto_iconv_arg1= &&
30 export am_cv_proto_iconv="extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" &&
31 ./configure --prefix=/mingw &&
32 make &&
33 index=$(/share/msysGit/pre-install.sh) &&
34 make install &&
35 /share/msysGit/post-install.sh $index "Install $FILE"
36 ) || die "Could not install $FILE"