aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-10 02:13:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-10 02:13:52 +0000
commit21f5c50d0d37f2ffd2a4e1fcd89a234ae8486ad0 (patch)
treeba6b24a0a8370caeb7cb924611c75a2ec5fc10c4 /win32
parent34037b162468fa1766452c56da3daac43ff03242 (diff)
downloadruby-21f5c50d0d37f2ffd2a4e1fcd89a234ae8486ad0.tar.gz
Makefile.sub: fix HAVE_GIT
* win32/Makefile.sub (HAVE_GIT): fix missing `do`, excape `$`, and fix a typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub6
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 8bf9077484..7ca2671f25 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -399,14 +399,14 @@ GIT = git
!if "$(HAVE_GIT)" == "yes" || "$(HAVE_GIT)" == "no"
!else if "$(GIT)" == ""
HAVE_GIT = no
-!else if [for %I in ($(GIT)) @if not "%~xI" == "" exit 1]
-! if [for %I in ($(GIT)) @if not "%~$PATH:I" == "" exit 1]
+!else if [for %I in ($(GIT)) do @if not "%~xI" == "" exit 1]
+! if [for %I in ($(GIT)) do @if not "%~$$PATH:I" == "" exit 1]
HAVE_GIT = yes
! else
HAVE_GIT = no
! endif
!else
-! if [for %x in (%PATHEXT:;= %) do @for %I in ($(GIT)%x) do @if not "%~$PATH:I" == . exit 1]
+! if [for %x in (%PATHEXT:;= %) do @for %I in ($(GIT)%x) do @if not "%~$$PATH:I" == "" exit 1]
HAVE_GIT = yes
! else
HAVE_GIT = no