Skip to content

Commit 6c7b444

Browse files
committed
patch 7.4.1025
Problem: Version in installer needs to be updated manually. Solution: Generate a file with the version number. (Guopeng Wen)
1 parent d5c899a commit 6c7b444

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ no_title.vim: Makefile
417417
echo "set notitle noicon nocp nomodeline viminfo=" >no_title.vim
418418

419419
# MS-DOS sources
420-
dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
420+
dossrc: dist no_title.vim dist/$(COMMENT_SRC) \
421+
runtime/doc/uganda.nsis.txt \
422+
nsis/gvim_version.nsh
421423
-rm -rf dist/vim$(VERSION)src.zip
422424
-rm -rf dist/vim
423425
mkdir dist/vim
@@ -428,6 +430,7 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
428430
$(SRC_AMI_DOS) \
429431
$(SRC_DOS_UNIX) \
430432
runtime/doc/uganda.nsis.txt \
433+
nsis/gvim_version.nsh \
431434
| (cd dist/vim/$(VIMRTDIR); tar xf -)
432435
mv dist/vim/$(VIMRTDIR)/runtime/* dist/vim/$(VIMRTDIR)
433436
rmdir dist/vim/$(VIMRTDIR)/runtime
@@ -441,6 +444,14 @@ dossrc: dist no_title.vim dist/$(COMMENT_SRC) runtime/doc/uganda.nsis.txt
441444
runtime/doc/uganda.nsis.txt: runtime/doc/uganda.txt
442445
cd runtime/doc && $(MAKE) uganda.nsis.txt
443446

447+
nsis/gvim_version.nsh: Makefile
448+
echo "# Generated from Makefile: define the version numbers" > $@
449+
echo "!ifndef __GVIM_VER__NSH__" >> $@
450+
echo "!define __GVIM_VER__NSH__" >> $@
451+
echo "!define VER_MAJOR $(MAJOR)" >> $@
452+
echo "!define VER_MINOR $(MINOR)" >> $@
453+
echo "!endif" >> $@
454+
444455
dosrt: dist dist/$(COMMENT_RT) dosrt_files
445456
-rm -rf dist/vim$(VERSION)rt.zip
446457
cd dist && zip -9 -rD -z vim$(VERSION)rt.zip vim <$(COMMENT_RT)

nsis/gvim.nsi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
# comment the next line if you do not want to add Native Language Support
2222
!define HAVE_NLS
2323

24-
!define VER_MAJOR 7
25-
!define VER_MINOR 4
24+
!include gvim_version.nsh # for version number
2625

2726
# ----------- No configurable settings below this line -----------
2827

nsis/gvim_version.nsh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Generated from Makefile: define the version numbers
2+
!ifndef __GVIM_VER__NSH__
3+
!define __GVIM_VER__NSH__
4+
!define VER_MAJOR 7
5+
!define VER_MINOR 4
6+
!endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
1025,
744746
/**/
745747
1024,
746748
/**/

0 commit comments

Comments
 (0)