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:
parent
26625bc33c
commit
7bd7a013b1
2 changed files with 2 additions and 2 deletions
|
@ -90,7 +90,7 @@ IFCHANGE = $(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat
|
||||||
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
|
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
|
||||||
RMDIR = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
RMDIR = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
||||||
RMDIRS = $(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
|
MAKEDIRS = $(COMSPEC) /E:ON /C $(srcdir:/=\)\win32\makedirs.bat
|
||||||
CP = copy > nul
|
CP = copy > nul
|
||||||
MV = move > nul
|
MV = move > nul
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
@echo off
|
@echo off
|
||||||
:optloop
|
:optloop
|
||||||
if "%1" == "-f" shift
|
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
|
if "%recursive%" == "1" goto :recursive
|
||||||
:begin
|
:begin
|
||||||
if "%1" == "" goto :end
|
if "%1" == "" goto :end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue