1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix $(RMALL) -r on Windows

`set recursive=1 &` sets `1 ` to `recursive`, not `1`.
This commit is contained in:
NAKAMURA Usaku 2019-11-26 11:44:11 +09:00
parent 26625bc33c
commit 7bd7a013b1
No known key found for this signature in database
GPG key ID: C5FE8AEA64F81259
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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