Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

When compiling vim, also compile & install gvim

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information...
commit 85d26abb2e9ca838d204ef7d1b084a408cca8d1b 1 parent 3146e5d
dscho dscho authored
Showing with 58 additions and 51 deletions.
  1. +58 −51 src/vim/release.sh
109 src/vim/release.sh
View
@@ -1,51 +1,58 @@
-#!/bin/sh
-
-cd "$(dirname "$0")"
-
-VERSION=7.3
-DIR=vim73
-URL=ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
-MD5='5b9510a17074e2b37d8bb38ae09edbf2'
-FILE=${URL##*/}
-
-die () {
- echo "$*" >&2
- exit 1
-}
-
-test -d $DIR || {
- test -f $FILE ||
- curl -O $URL ||
- die "Could not download vim"
-
- echo "$MD5 *$FILE" > $FILE.md5
- md5sum -c --status $FILE.md5 || (echo "invalid checksum $FILE";exit 1)
-
- tar xjvf $FILE && (
- cd $DIR &&
- git init &&
- git config core.autocrlf false &&
- git add . &&
- git commit -m "Import of $FILE"
- )
-} || die "Could not check out vim"
-
-cd $DIR/src &&
-make -f Make_ming.mak GUI=no vim.exe &&
-INDEX=$(/share/msysGit/pre-install.sh) &&
-rm -rf /share/vim/vim[0-9]* &&
-VIM_VERSION=$(sed -n 's/.*VIM_VERSION_NODOT "\(.*\)".*/\1/p' < version.h) &&
-SHARE=/share/vim/$VIM_VERSION &&
-cp -R ../runtime $SHARE &&
-cp vim.exe $SHARE/ &&
-cat > /bin/vi << EOF &&
-#!/bin/sh
-
-exec $SHARE/vim "\$@"
-EOF
-rm -f /bin/vim.exe &&
-cp /bin/vi /bin/vim &&
-/share/msysGit/post-install.sh $INDEX Install $VIM_VERSION || {
- echo "Failed to install vi"
- exit 1
-}
+#!/bin/sh
+
+cd "$(dirname "$0")"
+
+VERSION=7.3
+DIR=vim73
+URL=ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
+MD5='5b9510a17074e2b37d8bb38ae09edbf2'
+FILE=${URL##*/}
+
+die () {
+ echo "$*" >&2
+ exit 1
+}
+
+test -d $DIR || {
+ test -f $FILE ||
+ curl -O $URL ||
+ die "Could not download vim"
+
+ echo "$MD5 *$FILE" > $FILE.md5
+ md5sum -c --status $FILE.md5 || (echo "invalid checksum $FILE";exit 1)
+
+ tar xjvf $FILE && (
+ cd $DIR &&
+ git init &&
+ git config core.autocrlf false &&
+ git add . &&
+ git commit -m "Import of $FILE"
+ )
+} || die "Could not check out vim"
+
+cd $DIR/src &&
+make -f Make_ming.mak clean &&
+make -f Make_ming.mak GUI=no vim.exe &&
+make -f Make_ming.mak GUI=yes gvim.exe &&
+INDEX=$(/share/msysGit/pre-install.sh) &&
+rm -rf /share/vim/vim[0-9]* &&
+VIM_VERSION=$(sed -n 's/.*VIM_VERSION_NODOT "\(.*\)".*/\1/p' < version.h) &&
+SHARE=/share/vim/$VIM_VERSION &&
+cp -R ../runtime $SHARE &&
+cp gvim.exe vim.exe $SHARE/ &&
+cat > /bin/vi << EOF &&
+#!/bin/sh
+
+exec $SHARE/vim "\$@"
+EOF
+rm -f /bin/vim.exe &&
+cp /bin/vi /bin/vim &&
+cat > /bin/gvim << EOF &&
+#!/bin/sh
+
+exec $SHARE/gvim "\$@"
+EOF
+/share/msysGit/post-install.sh $INDEX Install $VIM_VERSION || {
+ echo "Failed to install vi"
+ exit 1
+}
Please sign in to comment.
Something went wrong with that request. Please try again.