From 7bd7a013b14fb6c4403ff243ec5db13c5c71f552 Mon Sep 17 00:00:00 2001 From: NAKAMURA Usaku Date: Tue, 26 Nov 2019 11:44:11 +0900 Subject: [PATCH] Fix `$(RMALL) -r` on Windows `set recursive=1 &` sets `1 ` to `recursive`, not `1`. --- win32/Makefile.sub | 2 +- win32/rm.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/Makefile.sub b/win32/Makefile.sub index e273260401..6594648561 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -90,7 +90,7 @@ IFCHANGE = $(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat RMDIR = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat RMDIRS = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat -RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat -r +RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat -f -r MAKEDIRS = $(COMSPEC) /E:ON /C $(srcdir:/=\)\win32\makedirs.bat CP = copy > nul MV = move > nul diff --git a/win32/rm.bat b/win32/rm.bat index 949644111b..8dddf454d6 100755 --- a/win32/rm.bat +++ b/win32/rm.bat @@ -1,7 +1,7 @@ @echo off :optloop if "%1" == "-f" shift -if "%1" == "-r" (shift & set recursive=1 & goto :optloop) +if "%1" == "-r" (shift & set "recursive=1" & goto :optloop) if "%recursive%" == "1" goto :recursive :begin if "%1" == "" goto :end