0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.1.0659: MS-Windows: MSVC Makefile is a bit hard to read

Problem:  MS-Windows: MSVC Makefile is a bit hard to read
          (after v9.1.0657)
Solution: indent the if/else statements to improve readability
          (Ken Takata)

closes: #15428

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ken Takata 2024-08-04 18:31:48 +02:00 committed by Christian Brabandt
parent 947f752a47
commit 2708afa640
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 16 additions and 7 deletions

View File

@ -166,8 +166,11 @@ RM = del /f /q
# Read MAJOR and MINOR from version.h.
!IF ![for /f "tokens=2,3" %I in (version.h) do \
@if "%I"=="VIM_VERSION_MAJOR" ( echo MAJOR=%J>.\major.tmp ) \
else if "%I"=="VIM_VERSION_MINOR" ( echo MINOR=%J>.\minor.tmp )]
@if "%I"=="VIM_VERSION_MAJOR" ( \
echo MAJOR=%J> .\major.tmp \
) else if "%I"=="VIM_VERSION_MINOR" ( \
echo MINOR=%J> .\minor.tmp && exit \
)]
!ENDIF
!IF EXIST(.\major.tmp)
@ -189,11 +192,15 @@ MINOR = 1
!ENDIF
# Read PATCHLEVEL from version.c.
!IF ![cmd.exe /V:ON /C "echo off && set LINE=0&& set FIND=0&& \
for /f "tokens=1,3 delims=,[ " %I in (version.c) do \
( set /A LINE+=1 > NUL && \
if "%J"=="included_patches" ( set /A FIND=LINE+3 > NUL ) \
else if "!LINE!"=="!FIND!" ( echo PATCHLEVEL=%I>.\patchlvl.tmp && exit ) )"]
!IF ![cmd.exe /V:ON /Q /C "set LINE=0&& set FIND=0&& \
for /f "tokens=1,3 delims=, " %I in (version.c) do ( \
set /A LINE+=1 > NUL && \
if "%J"=="included_patches[^]" ( \
set /A FIND=LINE+3 > NUL \
) else if "!LINE!"=="!FIND!" ( \
echo PATCHLEVEL=%I> .\patchlvl.tmp && exit \
) \
)"]
!ENDIF
!IF EXIST(.\patchlvl.tmp)
! INCLUDE .\patchlvl.tmp

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
659,
/**/
658,
/**/