]> granicus.if.org Git - vim/commitdiff
patch 7.4.1025 v7.4.1025
authorBram Moolenaar <Bram@vim.org>
Sat, 2 Jan 2016 14:44:32 +0000 (15:44 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 2 Jan 2016 14:44:32 +0000 (15:44 +0100)
Problem:    Version in installer needs to be updated manually.
Solution:   Generate a file with the version number. (Guopeng Wen)

Makefile
nsis/gvim.nsi
nsis/gvim_version.nsh [new file with mode: 0644]
src/version.c

index e13fbd800dd1abba69f60a9ec94f0643fb8f9a0c..710e59f525c27e935ac286f22516c08661e39426 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -417,7 +417,9 @@ no_title.vim: Makefile
        echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim
 
 # MS-DOS sources
-dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
+dossrc: dist no_title.vim dist/$(COMMENT_SRC) \
+       runtime/doc/uganda.nsis.txt \
+       nsis/gvim_version.nsh
        -rm -rf dist/vim$(VERSION)src.zip
        -rm -rf dist/vim
        mkdir dist/vim
@@ -428,6 +430,7 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
                $(SRC_AMI_DOS) \
                $(SRC_DOS_UNIX) \
                runtime/doc/uganda.nsis.txt \
+               nsis/gvim_version.nsh \
                | (cd dist/vim/$(VIMRTDIR); tar xf -)
        mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
        rmdir dist/vim/$(VIMRTDIR)/runtime
@@ -441,6 +444,14 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
 runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt
        cd runtime/doc && $(MAKE) uganda.nsis.txt
 
+nsis/gvim_version.nsh: Makefile
+       echo "# Generated from Makefile: define the version numbers" > $@
+       echo "!ifndef __GVIM_VER__NSH__"  >> $@
+       echo "!define __GVIM_VER__NSH__"  >> $@
+       echo "!define VER_MAJOR $(MAJOR)" >> $@
+       echo "!define VER_MINOR $(MINOR)" >> $@
+       echo "!endif" >> $@
+
 dosrt: dist dist/$(COMMENT_RT) dosrt_files
        -rm -rf dist/vim$(VERSION)rt.zip
        cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT)
index a2d20bf829e02d46c6abe93bfa2e9ffa0bab13c2..7c8d4ba8781490c6ba49d37c76ad4a38c98688c8 100644 (file)
@@ -21,8 +21,7 @@
 # comment the next line if you do not want to add Native Language Support
 !define HAVE_NLS
 
-!define VER_MAJOR 7
-!define VER_MINOR 4
+!include gvim_version.nsh      # for version number
 
 # ----------- No configurable settings below this line -----------
 
diff --git a/nsis/gvim_version.nsh b/nsis/gvim_version.nsh
new file mode 100644 (file)
index 0000000..d2edbc7
--- /dev/null
@@ -0,0 +1,6 @@
+# Generated from Makefile: define the version numbers
+!ifndef __GVIM_VER__NSH__
+!define __GVIM_VER__NSH__
+!define VER_MAJOR 7
+!define VER_MINOR 4
+!endif
index 2dbd6e9a5fa47640472392e5dc3fcd107576fe42..aaba44248279118ce789374fc8e91c74da16885d 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1025,
 /**/
     1024,
 /**/