summaryrefslogtreecommitdiffstats
path: root/src/Make_mvc.mak
diff options
context:
space:
mode:
authorRestorerZ <restorer@mail2k.ru>2024-04-23 20:33:38 +0200
committerChristian Brabandt <cb@256bit.org>2024-04-23 20:33:38 +0200
commitdc5cd1cac1a8b25b6259f2b0a7a071f7b840e730 (patch)
tree51a4b539683f873836c89c03eae1d70dd835f2cd /src/Make_mvc.mak
parenta16f251333e324c94ca8e3e92d1fcf3193dfa382 (diff)
patch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroesv9.1.0368
Problem: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes for the installer Solution: re-define VIM_VERSION_PATCHLEVEL_STR with leading zeroes, interpret Patchlevel as decimal in Make_mvc.mak (RestorerZ) closes: #14471 Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/Make_mvc.mak')
-rw-r--r--src/Make_mvc.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak
index e05518610b..aec9efaf9a 100644
--- a/src/Make_mvc.mak
+++ b/src/Make_mvc.mak
@@ -187,7 +187,7 @@ MINOR= 1
!ENDIF
!IF ![$(PS) $(PSFLAGS) try{Out-File -FilePath '.\patchlvl.tmp' -InputObject \
- \"PATCHLEVEL=$$(((Get-Content -Path '.\version.c' \
+ \"PATCHLEVEL=$$([decimal^]((Get-Content -Path '.\version.c' \
-TotalCount ((Select-String -Pattern 'static int included_patches' \
-Path '.\version.c').LineNumber+3))[-1^]).Trim().TrimEnd(','))\"} \
catch{exit 1}]