Skip to content

Commit 79a2627

Browse files
committed
Add /src/vim/release.sh, a script to compile and install vim
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 39278e9 commit 79a2627

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

src/vim/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vim

src/vim/release.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/sh
2+
3+
cd "$(dirname "$0")"
4+
5+
URL=git://github.com/cmichon/vim.git
6+
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
25+
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
33+
}

0 commit comments

Comments
 (0)