From: Mike Ralphson <mike@abacus.co.uk>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org, Mike Ralphson <mike.ralphson@gmail.com>
Subject: [JGIT PATCH] Allow make_jgit.sh compilation under Cygwin or Mingw (MsysGit) with Windows JDK
Date: Thu, 21 Aug 2008 10:33:11 +0100 [thread overview]
Message-ID: <1219311191-10984-1-git-send-email-mike@abacus.co.uk> (raw)
Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
---
make_jgit.sh | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diff --git a/make_jgit.sh b/make_jgit.sh
index 13d0e32..c119202 100755
--- a/make_jgit.sh
+++ b/make_jgit.sh
@@ -10,14 +10,24 @@ JARS="
org.spearce.jgit.pgm/lib/args4j-2.0.9.jar
"
-if [ -n "$JAVA_HOME" ]
-then
- PATH=$JAVA_HOME/bin:$PATH
-fi
-
+PSEP=":"
T=".temp$$.$O"
T_MF="$T.MF"
R=`pwd`
+if [ "$OSTYPE" = "cygwin" ]
+then
+ R=`cygpath -m $R`
+ PSEP=";"
+fi
+if [ "$MSYSTEM" = "MINGW" ]
+then
+ PSEP=";"
+fi
+
+if [ -n "$JAVA_HOME" ]
+then
+ PATH=${JAVA_HOME}/bin${PSEP}${PATH}
+fi
cleanup_bin() {
rm -f $T $O+ $T_MF
@@ -44,7 +54,7 @@ do
then
CLASSPATH="$R/$j"
else
- CLASSPATH="$CLASSPATH:$R/$j"
+ CLASSPATH="${CLASSPATH}${PSEP}$R/$j"
fi
done
export CLASSPATH
@@ -61,7 +71,7 @@ do
-encoding UTF-8 \
-g \
-d ../bin2) || die "Building $p failed."
- CLASSPATH="$CLASSPATH:$R/$p/bin2"
+ CLASSPATH="${CLASSPATH}${PSEP}$R/$p/bin2"
done
echo Manifest-Version: 1.0 >$T_MF &&
--
1.5.6.4
next reply other threads:[~2008-08-21 9:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-21 9:33 Mike Ralphson [this message]
2008-08-21 9:35 ` [JGIT PATCH] Allow make_jgit.sh compilation under Cygwin or Mingw (MsysGit) with Windows JDK Imran M Yousuf
2008-08-21 9:48 ` Mike Ralphson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1219311191-10984-1-git-send-email-mike@abacus.co.uk \
--to=mike@abacus.co.uk \
--cc=git@vger.kernel.org \
--cc=mike.ralphson@gmail.com \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).