ruby-changes:34712
From: nobu <ko1@a...>
Date: Sat, 12 Jul 2014 23:49:50 +0900 (JST)
Subject: [ruby-changes:34712] nobu:r46795 (trunk): win32/configure.bat: check directory
nobu 2014-07-12 23:49:46 +0900 (Sat, 12 Jul 2014) New Revision: 46795 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46795 Log: win32/configure.bat: check directory * win32/configure.bat: bail out if run in win32 directory. [ruby-core:63648] [Bug #10027] Modified files: trunk/win32/configure.bat Index: win32/configure.bat =================================================================== --- win32/configure.bat (revision 46794) +++ win32/configure.bat (revision 46795) @@ -2,6 +2,11 @@ https://github.com/ruby/ruby/blob/trunk/win32/configure.bat#L2 @setlocal disabledelayedexpansion set witharg= +for %%I in (%0) do if /%%~dpI/ == /%CD%\/ ( + echo don't run in win32 directory. + exit /b 999 +) + echo> ~tmp~.mak #### echo>> ~tmp~.mak conf = %0 echo>> ~tmp~.mak $(conf): nul -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/