Mercurial > vim
diff src/Make_mvc.mak @ 35034:c2499556f2fe v9.1.0368
patch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes
Commit: https://github.com/vim/vim/commit/dc5cd1cac1a8b25b6259f2b0a7a071f7b840e730
Author: RestorerZ <restorer@mail2k.ru>
Date: Tue Apr 23 20:33:38 2024 +0200
patch 9.1.0368: MS-Windows: Hard to define the Vim Patchlevel with leading zeroes
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 23 Apr 2024 20:45:02 +0200 |
parents | 73e0743621c3 |
children | e671080ef0e2 |
line wrap: on
line diff
--- 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}]