Defer creation of RevWalk in RevWalk based command tools
[egit/zawir.git] / jgit
blobbe7df7ec411e799b0fece29f0574574331befc72
1 #!/bin/sh
3 jgit_home=`dirname $0`
4 cp="$jgit_home/org.spearce.jgit/bin"
5 cp="$cp:$jgit_home/org.spearce.jgit/lib/jsch-0.1.37.jar"
6 unset jgit_home
7 java_args=
9 # Cleanup paths for Cygwin.
11 case "`uname`" in
12 CYGWIN*)
13 cp=`cygpath --windows --mixed --path "$cp"`
15 Darwin)
16 if test -e /System/Library/Frameworks/JavaVM.framework
17 then
18 java_args='
19 -Dcom.apple.mrj.application.apple.menu.about.name=JGit
20 -Dcom.apple.mrj.application.growbox.intrudes=false
21 -Dapple.laf.useScreenMenuBar=true
22 -Xdock:name=JGit
26 esac
28 CLASSPATH="$cp"
29 export CLASSPATH
31 java=java
32 if test -n "$JAVA_HOME"
33 then
34 java="$JAVA_HOME/bin/java"
37 exec "$java" $java_args org.spearce.jgit.pgm.Main "$@"