diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-01 06:40:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-03-01 06:40:09 +0000 |
commit | 29c630e71da649039d2210c8c737483d44a8f2c3 (patch) | |
tree | 3650aad43ee5efed6edbc1a542ac8c09b8fda44a /win32 | |
parent | f9cec70898560505f89b7f75b7fe7eabea6a4632 (diff) | |
download | ruby-29c630e71da649039d2210c8c737483d44a8f2c3.tar.gz |
* win32/makedirs.bat: new command to make intermediate
directories, and not to report any errors if the directory
already exists.
* win32/Makefile.sub (MAKEDIRS): enable command extensions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 3 | ||||
-rwxr-xr-x | win32/makedirs.bat | 3 | ||||
-rwxr-xr-x[-rw-r--r--] | win32/rmall.bat | 0 |
3 files changed, 4 insertions, 2 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 87a4206da5..df3ae39398 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -74,6 +74,7 @@ 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\rmall.bat +MAKEDIRS = $(COMSPEC) /E:ON /C $(srcdir:/=\)\win32\makedirs.bat CP = copy > nul MV = move > nul !if !defined(BASERUBY) @@ -289,8 +290,6 @@ DEFAULT_PRELUDES = $(NO_GEM_PRELUDE) DEFAULT_PRELUDES = $(YES_GEM_PRELUDE) !endif -MAKEDIRS = mkdir - !if !defined(STACK) !if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64" STACK = 0x400000 diff --git a/win32/makedirs.bat b/win32/makedirs.bat new file mode 100755 index 0000000000..13740d8778 --- /dev/null +++ b/win32/makedirs.bat @@ -0,0 +1,3 @@ +@echo off
+setlocal EnableExtensions
+for %%I in (%*) do if not exist "%%~I/." mkdir "%%~I"
diff --git a/win32/rmall.bat b/win32/rmall.bat index f49a168930..f49a168930 100644..100755 --- a/win32/rmall.bat +++ b/win32/rmall.bat |