summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-01-29 16:15:46 +0100
committerYves Orton <demerphq@gmail.com>2023-01-30 08:42:23 +0800
commitc0a24b11a0434ad8c8b1e758b952f8546d69c216 (patch)
tree7a8ffe484053d6b5205f43b9125a45e575f4119f /win32
parentfc931ecfefd2e26fc39f6d7a50d7abf611c19f52 (diff)
downloadperl-c0a24b11a0434ad8c8b1e758b952f8546d69c216.tar.gz
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.
Diffstat (limited to 'win32')
-rw-r--r--win32/GNUmakefile1
-rw-r--r--win32/Makefile1
2 files changed, 2 insertions, 0 deletions
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.