Skip to content

Commit 352c811

Browse files
dschogitster
authored andcommitted
MinGW: the path separator to split GITPERLLIB is ';' on Win32
Signed-off-by: Johannes Schindelin <[email protected]> Signed-off-by: Steffen Prohaska <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bedc427 commit 352c811

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ ETC_GITCONFIG = etc/gitconfig
228228
endif
229229
lib = lib
230230
# DESTDIR=
231+
pathsep = :
231232

232233
# default configuration for gitweb
233234
GITWEB_CONFIG = gitweb_config.perl
@@ -816,6 +817,7 @@ ifneq (,$(findstring CYGWIN,$(uname_S)))
816817
UNRELIABLE_FSTAT = UnfortunatelyYes
817818
endif
818819
ifneq (,$(findstring MINGW,$(uname_S)))
820+
pathsep = ;
819821
NO_PREAD = YesPlease
820822
NO_OPENSSL = YesPlease
821823
NO_CURL = YesPlease
@@ -1270,7 +1272,7 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
12701272
sed -e '1{' \
12711273
-e ' s|#!.*perl|#!$(PERL_PATH_SQ)|' \
12721274
-e ' h' \
1273-
-e ' s=.*=use lib (split(/:/, $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@"));=' \
1275+
-e ' s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@"));=' \
12741276
-e ' H' \
12751277
-e ' x' \
12761278
-e '}' \

0 commit comments

Comments
 (0)