summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-12 14:49:46 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-12 14:49:46 (GMT)
commit8a29da3b76a54ce97e7c30808b729f7d8217c992 (patch)
treee083c14e4a51b59cf0dd32ffc075231d37ee342d /win32
parent2822bd29e22d60c901e873442cf75f92f2339ddf (diff)
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')
-rwxr-xr-xwin32/configure.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/configure.bat b/win32/configure.bat
index 6910f56..edf18b7 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