From c0a24b11a0434ad8c8b1e758b952f8546d69c216 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sun, 29 Jan 2023 16:15:46 +0100 Subject: win32/*akefile - delete before rename All of the other rename commands in win32/Makefile and win32/GNUmakefile are guarded by a del statement. This does the equivalent for the rename command that creates config.sh. Fixes #20749. --- win32/GNUmakefile | 1 + win32/Makefile | 1 + 2 files changed, 2 insertions(+) (limited to 'win32') diff --git a/win32/GNUmakefile b/win32/GNUmakefile index c67a733346..dad6db1a74 100644 --- a/win32/GNUmakefile +++ b/win32/GNUmakefile @@ -1195,6 +1195,7 @@ endif ..\config.sh : $(CFGSH_TMPL) config_sh.PL FindExt.pm $(HAVEMINIPERL) $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh.tmp + if exist ..\config.sh del /f ..\config.sh rename ..\config.sh.tmp config.sh # This target is for when changes to the main config.sh happen. diff --git a/win32/Makefile b/win32/Makefile index 288c6c6eba..fe5019a4a8 100644 --- a/win32/Makefile +++ b/win32/Makefile @@ -887,6 +887,7 @@ perlglob$(o) : perlglob.c ..\config.sh : $(CFGSH_TMPL) config_sh.PL FindExt.pm $(MINIPERL) $(MINIPERL) -I..\lib config_sh.PL $(CFG_VARS) $(CFGSH_TMPL) > ..\config.sh.tmp + if exist ..\config.sh del /f ..\config.sh rename ..\config.sh.tmp config.sh # This target is for when changes to the main config.sh happen. -- cgit v1.2.1