Try to make tkImg run
[msysgit.git] / src / vim / release.sh
blob4498093240eb8d10bc00795d1856eeadf800bd6e
1 #!/bin/sh
3 cd "$(dirname "$0")"
5 URL=git://github.com/cmichon/vim.git
7 if test -d vim
8 then
9 cd vim &&
10 git pull
11 else
12 git clone $URL &&
13 cd vim
14 fi &&
15 cd src &&
16 make -f Make_ming.mak vim.exe &&
17 INDEX=$(/share/msysGit/pre-install.sh) &&
18 rm -rf /share/vim/vim[0-9]* &&
19 VIM_VERSION=$(sed -n 's/.*VIM_VERSION_NODOT "\(.*\)".*/\1/p' < version.h) &&
20 SHARE=/share/vim/$VIM_VERSION &&
21 cp -R ../runtime $SHARE &&
22 cp vim.exe $SHARE/ &&
23 cat > /bin/vi << EOF &&
24 #!/bin/sh
26 exec $SHARE/vim "\$@"
27 EOF
28 rm -f /bin/vim.exe &&
29 cp /bin/vi /bin/vim &&
30 /share/msysGit/post-install.sh $INDEX Install $VIM_VERSION || {
31 echo "Failed to install vi"
32 exit 1