@@ -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
441444runtime/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+
444455dosrt : 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 )
0 commit comments