diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-12 14:49:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-12 14:49:46 +0000 |
commit | 8a29da3b76a54ce97e7c30808b729f7d8217c992 (patch) | |
tree | e083c14e4a51b59cf0dd32ffc075231d37ee342d /win32/configure.bat | |
parent | 2822bd29e22d60c901e873442cf75f92f2339ddf (diff) | |
download | ruby-8a29da3b76a54ce97e7c30808b729f7d8217c992.tar.gz |
win32/configure.bat: check directory
* win32/configure.bat: bail out if run in win32 directory.
[ruby-core:63648] [Bug #10027]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/configure.bat')
-rwxr-xr-x | win32/configure.bat | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/configure.bat b/win32/configure.bat index 6910f561dd..edf18b7411 100755 --- a/win32/configure.bat +++ b/win32/configure.bat @@ -2,6 +2,11 @@ @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
|