git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/5] MinGW: the path separator to split GITPERLLIB is ';' on Win32

From
Steffen Prohaska <prohaska@zib.de>
Date
May 23, 2009, 08:04 UTC
Message-ID
<1243065891-13270-3-git-send-email-prohaska@zib.de>
In-Reply-To
<1243065891-13270-2-git-send-email-prohaska@zib.de>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
---
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 26d180c..7166760 100644
--- a/Makefile
+++ b/Makefile
@@ -225,6 +225,7 @@ ETC_GITCONFIG = etc/gitconfig
 endif
 lib = lib
 # DESTDIR=
+pathsep = :
 
 # default configuration for gitweb
 GITWEB_CONFIG = gitweb_config.perl
@@ -813,6 +814,7 @@ ifneq (,$(findstring CYGWIN,$(uname_S)))
 	UNRELIABLE_FSTAT = UnfortunatelyYes
 endif
 ifneq (,$(findstring MINGW,$(uname_S)))
+	pathsep = ;
 	NO_PREAD = YesPlease
 	NO_OPENSSL = YesPlease
 	NO_CURL = YesPlease
@@ -1268,7 +1270,7 @@ $(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
 	sed -e '1{' \
 	    -e '	s|#!.*perl|#!$(PERL_PATH_SQ)|' \
 	    -e '	h' \
-	    -e '	s=.*=use lib (split(/:/, $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@"));=' \
+	    -e '	s=.*=use lib (split(/$(pathsep)/, $$ENV{GITPERLLIB} || "@@INSTLIBDIR@@"));=' \
 	    -e '	H' \
 	    -e '	x' \
 	    -e '}' \
-- 
1.6.3.1.54.g99dd
Previous: Steffen ProhaskaNext: Steffen Prohaska
Message 3 of 6 in “A few minor MinGW changes”
  1. 0/5 A few minor MinGW changesSteffen Prohaska, May 23, 2009
  2. 1/5 MinGW: Scan for \r in addition to \n when reading shbang linesSteffen Prohaska, May 23, 2009
  3. 2/5 MinGW: the path separator to split GITPERLLIB is ';' on Win32Steffen Prohaska, May 23, 2009
  4. 3/5 MinGW: use POSIX signature of waitpid()Steffen Prohaska, May 23, 2009
  5. 4/5 MinGW: Add a simple getpass()Steffen Prohaska, May 23, 2009
  6. 5/5 MinGW: Fix compiler warning in merge-recursiveSteffen Prohaska, May 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.