summaryrefslogtreecommitdiffstats
path: root/editors/vim/PRE_BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vim/PRE_BUILD')
-rwxr-xr-xeditors/vim/PRE_BUILD23
1 files changed, 14 insertions, 9 deletions
diff --git a/editors/vim/PRE_BUILD b/editors/vim/PRE_BUILD
index 4adf6d90aa..e1089122ee 100755
--- a/editors/vim/PRE_BUILD
+++ b/editors/vim/PRE_BUILD
@@ -1,12 +1,17 @@
default_pre_build &&
cd ${SOURCE_DIRECTORY} &&
-unpack_file 2 &&
-for i in $(seq -w 1 107); do
- message "${MESSAGE_COLOR}applying patch 7.3.$i ...${DEFAULT_COLOR}" &&
- patch -p0 < patches/7.3.$i
-done &&
-
-message "${MESSAGE_COLOR}Fixing if_perl.xs...${DEFAULT_COLOR}" &&
-patch "${SOURCE_DIRECTORY}"/src/if_perl.xs \
- "${SPELL_DIRECTORY}"/if_perl.patch
+if [[ "${VIM_BRANCH}" == "scm" ]]
+then
+ message "${MESSAGE_COLOR}Building from SCM...${DEFAULT_COLOR}"
+ # message "${MESSAGE_COLOR}Fixing if_perl.xs...${DEFAULT_COLOR}" &&
+ # patch "${SOURCE_DIRECTORY}"/src/if_perl.xs \
+ # "${SPELL_DIRECTORY}"/if_perl.patch
+else
+ message "${MESSAGE_COLOR}Building from stable tarball...${DEFAULT_COLOR}"
+ unpack_file 2 &&
+ for i in $(seq -w 1 $PATCH_VERSION); do
+ message "${MESSAGE_COLOR}applying patch $XVERSION.$i ...${DEFAULT_COLOR}" &&
+ patch -p0 < vim-$XVERSION-patches-001-$PATCH_VERSION/$XVERSION.$i
+ done
+fi