summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-26 14:10:41 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-26 14:10:41 +0000
commit205cc6c068ae48f1ec9d7f78c0c228f70855ab97 (patch)
tree0d2c298715ceaee4d4ec630b0bd5eba23668b908 /win32
parent43b4bae567b4580fbfcb143b7812ce180144959c (diff)
* win32/Makefile.sub: suppress a strange error message when RMALL
found no such file. * win32/rmall.bat: new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub2
-rw-r--r--win32/rmall.bat6
2 files changed, 7 insertions, 1 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 67ebf9afc7..4e2a0697e4 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -72,7 +72,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 rmdir /s /q
+RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rmall.bat
CP = copy > nul
MV = move > nul
!if !defined(BASERUBY)
diff --git a/win32/rmall.bat b/win32/rmall.bat
new file mode 100644
index 0000000000..6c428b76fa
--- /dev/null
+++ b/win32/rmall.bat
@@ -0,0 +1,6 @@
+@echo off
+
+if "%1" == "" goto :end
+if exist "%1" rmdir /s /q "%1"
+
+:end