Skip to contentSkip to conversation

Repair make_jgit.sh to work in MSYS environment

PATCH New Christian Halstrick 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Repair make_jgit.sh to work in MSYS environment

From: Christian Halstrick <[email protected]>

My MSYS installation sets the environment variable MSYSTEM to "MINGW32" which was not handled in make_jgit.sh. Corrected that. Also Suns Windows javac doesn't like classpathes with /<driveletter/<dir>. When using pwd -W i get pathes accepted by windows javac.

---
 make_jgit.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
make_jgit.sh +2 -1
index 027a074..baaa3af 100755
@@ -22,9 +22,10 @@ then
 	R=`cygpath -m $R`
 	PSEP=";"
 fi
-if [ "$MSYSTEM" = "MINGW" ]
+if [ "$MSYSTEM" = "MINGW" -o "$MSYSTEM" = "MINGW32" ]
 then
 	PSEP=";"
+	R=`pwd -W`
 fi
 
 if [ -n "$JAVA_HOME" ]
Signature · 1 line
1.6.3.2.1299.gee46c