forked from sonatype/JGit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjgit.sh
executable file
·52 lines (46 loc) · 1018 Bytes
/
jgit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh
if [ "@@use_self@@" = "1" ]
then
this_script=`which "$0" 2>/dev/null`
[ $? -gt 0 -a -f "$0" ] && this_script="$0"
cp=$this_script
else
jgit_home=`dirname $0`
cp="$jgit_home/org.spearce.jgit/bin"
cp="$cp:$jgit_home/org.spearce.jgit/lib/jsch-0.1.37.jar"
cp="$cp:$jgit_home/org.spearce.jgit.pgm/bin"
cp="$cp:$jgit_home/org.spearce.jgit.pgm/lib/args4j-2.0.9.jar"
unset jgit_home
java_args=
fi
if [ -n "$JGIT_CLASSPATH" ]
then
cp="$cp:$JGIT_CLASSPATH"
fi
# Cleanup paths for Cygwin.
#
case "`uname`" in
CYGWIN*)
cp=`cygpath --windows --mixed --path "$cp"`
;;
Darwin)
if test -e /System/Library/Frameworks/JavaVM.framework
then
java_args='
-Dcom.apple.mrj.application.apple.menu.about.name=JGit
-Dcom.apple.mrj.application.growbox.intrudes=false
-Dapple.laf.useScreenMenuBar=true
-Xdock:name=JGit
'
fi
;;
esac
CLASSPATH="$cp"
export CLASSPATH
java=java
if test -n "$JAVA_HOME"
then
java="$JAVA_HOME/bin/java"
fi
exec "$java" $java_args org.spearce.jgit.pgm.Main "$@"
exit 1