summaryrefslogtreecommitdiff
path: root/win32/makedirs.bat
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-01 06:40:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-01 06:40:09 +0000
commit29c630e71da649039d2210c8c737483d44a8f2c3 (patch)
tree3650aad43ee5efed6edbc1a542ac8c09b8fda44a /win32/makedirs.bat
parentf9cec70898560505f89b7f75b7fe7eabea6a4632 (diff)
* 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/makedirs.bat')
-rwxr-xr-xwin32/makedirs.bat3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/makedirs.bat b/win32/makedirs.bat
new file mode 100755
index 0000000..13740d8
--- /dev/null
+++ b/win32/makedirs.bat
@@ -0,0 +1,3 @@
+@echo off
+setlocal EnableExtensions
+for %%I in (%*) do if not exist "%%~I/." mkdir "%%~I"