summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/vim-gvim.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/vim/vim-gvim.SlackBuild')
-rwxr-xr-xsource/ap/vim/vim-gvim.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/source/ap/vim/vim-gvim.SlackBuild b/source/ap/vim/vim-gvim.SlackBuild
index f5a5185ad..6183d4e68 100755
--- a/source/ap/vim/vim-gvim.SlackBuild
+++ b/source/ap/vim/vim-gvim.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2008, 2009, 2010, 2013 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,9 +21,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-VIMVER=7.3
+VIMVER=7.4
# This is the directory in the VIM source archive to cd into.
-DIRVER=73
+DIRVER=74
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
@@ -59,10 +59,13 @@ mkdir -p $TMP $PKG
# Determine VIM patchlevel:
if [ -d $CWD/patches ] ; then
cd $CWD/patches
- PATCHLEVEL=$(/bin/ls 2> /dev/null | tail -1 | cut -f 3 -d . )
+ PATCHLEVEL=$(/bin/ls ?.?.????.gz 2> /dev/null | tail -1 | cut -f 3 -d . )
+ if [ "$PATCHLEVEL" = "" ]; then
+ PATCHLEVEL=$(/bin/ls ?.?.???.gz 2> /dev/null | tail -1 | cut -f 3 -d . )
if [ "$PATCHLEVEL" = "" ]; then
PATCHLEVEL=000
fi
+ fi
cd $CWD
fi
@@ -112,8 +115,10 @@ find . \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-for file in $CWD/patches/* ; do
- ( zcat $file 2> /dev/null | patch -p0 --verbose --batch )
+for file in $CWD/patches/?.?.???.gz $CWD/patches/?.?.????.gz ; do
+ if [ -f $file ]; then
+ zcat $file | patch -p0 --verbose || exit 1
+ fi
done
config_vim --with-x --enable-gui=gtk2