ruby-changes:22813
From: nobu <ko1@a...>
Date: Thu, 1 Mar 2012 15:40:20 +0900 (JST)
Subject: [ruby-changes:22813] nobu:r34862 (trunk): * win32/makedirs.bat: new command to make intermediate
nobu 2012-03-01 15:40:09 +0900 (Thu, 01 Mar 2012) New Revision: 34862 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34862 Log: * 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. Added files: trunk/win32/makedirs.bat Modified files: trunk/ChangeLog trunk/win32/Makefile.sub trunk/win32/file.c trunk/win32/rmall.bat Index: ChangeLog =================================================================== --- ChangeLog (revision 34861) +++ ChangeLog (revision 34862) @@ -1,3 +1,11 @@ +Thu Mar 1 15:40:05 2012 Nobuyoshi Nakada <nobu@r...> + + * 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. + Thu Mar 1 01:25:43 2012 NARUSE, Yui <naruse@r...> * regparse.c (is_onechar_cclass): optimize character class Property changes on: win32/file.c ___________________________________________________________________ Added: svn:eol-style + LF Index: win32/makedirs.bat =================================================================== --- win32/makedirs.bat (revision 0) +++ win32/makedirs.bat (revision 34862) @@ -0,0 +1,3 @@ +@echo off +setlocal EnableExtensions +for %%I in (%*) do if not exist "%%~I/." mkdir "%%~I" Property changes on: win32/makedirs.bat ___________________________________________________________________ Added: svn:eol-style + CRLF Added: svn:executable + * Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 34861) +++ win32/Makefile.sub (revision 34862) @@ -74,6 +74,7 @@ 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 = $(YES_GEM_PRELUDE) !endif -MAKEDIRS = mkdir - !if !defined(STACK) !if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64" STACK = 0x400000 Property changes on: win32/rmall.bat ___________________________________________________________________ Added: svn:executable + * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/