aboutsummaryrefslogtreecommitdiffstats
path: root/win32/configure.bat
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-10 01:22:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-10 01:22:48 +0000
commit0ab20b48c5a2595f30aedda129893702e409a5a9 (patch)
tree8081923505b44728cfb13d183fad21662ce76e06 /win32/configure.bat
parent68c9c97f139c8e4f0543a3f431fdb567ad6b1ac3 (diff)
downloadruby-0ab20b48c5a2595f30aedda129893702e409a5a9.tar.gz
Add --with-git option
* configure.in, win32/configure.bat: add --with-git option to tell git command to use, or not to use git. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/configure.bat')
-rwxr-xr-xwin32/configure.bat14
1 files changed, 14 insertions, 0 deletions
diff --git a/win32/configure.bat b/win32/configure.bat
index dca517e4f4..18c9d95963 100755
--- a/win32/configure.bat
+++ b/win32/configure.bat
@@ -41,6 +41,8 @@ if "%1" == "--path" goto :path
if "%1" == "--with-baseruby" goto :baseruby
if "%1" == "--with-ntver" goto :ntver
if "%1" == "--with-libdir" goto :libdir
+if "%1" == "--with-git" goto :git
+if "%1" == "--without-git" goto :nogit
if "%1" == "--without-ext" goto :witharg
if "%1" == "--without-extensions" goto :witharg
if "%opt:~0,10%" == "--without-" goto :withoutarg
@@ -179,6 +181,18 @@ goto :loop ;
shift
shift
goto :loop ;
+:git
+ echo>> ~tmp~.mak "GIT=%~2" \
+ echo>>confargs.tmp %1=%2 \
+ shift
+ shift
+goto :loop ;
+:nogit
+ echo>> ~tmp~.mak "GIT=never-use" \
+ echo>> ~tmp~.mak "HAVE_GIT=no" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop ;
:witharg
echo>>confargs.tmp %1=%2\
set witharg=1