# HG changeset patch # User Bram Moolenaar # Date 1558897205 -7200 # Node ID 9fa322a3bc311dd72e0a2d17a5199a8885b12d7b # Parent 2490583b96854e9bc4a6f55e9b70d79ee19428b1 patch 8.1.1404: cannot change the patch level when building with NSIS commit https://github.com/vim/vim/commit/9d591525a5d7a693aa47b4a87c5f53c503500c1c Author: Bram Moolenaar Date: Sun May 26 20:49:42 2019 +0200 patch 8.1.1404: cannot change the patch level when building with NSIS Problem: Cannot change the patch level when building with NSIS. Solution: Use $PATCHLEVEL if defined. (Christian Brabandt) diff --git a/nsis/gvim.nsi b/nsis/gvim.nsi --- a/nsis/gvim.nsi +++ b/nsis/gvim.nsi @@ -47,6 +47,11 @@ Unicode true !include gvim_version.nsh # for version number +# Definition of Patch for Vim +!ifndef PATCHLEVEL + !define PATCHLEVEL 0 +!endif + # ----------- No configurable settings below this line ----------- !include "Library.nsh" # For DLL install @@ -181,8 +186,8 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "C VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "Vim" VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "Copyright (C) 1996" VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "Vi Improved - A Text Editor" -VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VER_MAJOR}.${VER_MINOR}.0.0" -VIProductVersion "${VER_MAJOR}.${VER_MINOR}.0.0" +VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0" +VIProductVersion "${VER_MAJOR}.${VER_MINOR}.${PATCHLEVEL}.0" # Global variables Var vim_dialog diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1404, +/**/ 1403, /**/ 1402,