Correct getRepositoryMapping callers to use any IResource
[egit/graphgui.git] / jgit.sh
blob121beec0b3c2fe323d7239ea0fde2d74d2a1678f
1 #!/bin/sh
3 if [ "@@use_self@@" = "1" ]
4 then
5 this_script=`which "$0" 2>/dev/null`
6 [ $? -gt 0 -a -f "$0" ] && this_script="$0"
7 cp=$this_script
8 else
9 jgit_home=`dirname $0`
10 cp="$jgit_home/org.spearce.jgit/bin"
11 cp="$cp:$jgit_home/org.spearce.jgit/lib/jsch-0.1.37.jar"
12 cp="$cp:$jgit_home/org.spearce.jgit.pgm/bin"
13 cp="$cp:$jgit_home/org.spearce.jgit.pgm/lib/args4j-2.0.9.jar"
14 unset jgit_home
15 java_args=
18 # Cleanup paths for Cygwin.
20 case "`uname`" in
21 CYGWIN*)
22 cp=`cygpath --windows --mixed --path "$cp"`
24 Darwin)
25 if test -e /System/Library/Frameworks/JavaVM.framework
26 then
27 java_args='
28 -Dcom.apple.mrj.application.apple.menu.about.name=JGit
29 -Dcom.apple.mrj.application.growbox.intrudes=false
30 -Dapple.laf.useScreenMenuBar=true
31 -Xdock:name=JGit
35 esac
37 CLASSPATH="$cp"
38 export CLASSPATH
40 java=java
41 if test -n "$JAVA_HOME"
42 then
43 java="$JAVA_HOME/bin/java"
46 exec "$java" $java_args org.spearce.jgit.pgm.Main "$@"
47 exit 1