Automatically initialize a new dumb repository during push
[egit/zawir.git] / jgit.sh
blob84927bc4980a9a883a4058e19710563b62569a0d
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 unset jgit_home
13 java_args=
16 # Cleanup paths for Cygwin.
18 case "`uname`" in
19 CYGWIN*)
20 cp=`cygpath --windows --mixed --path "$cp"`
22 Darwin)
23 if test -e /System/Library/Frameworks/JavaVM.framework
24 then
25 java_args='
26 -Dcom.apple.mrj.application.apple.menu.about.name=JGit
27 -Dcom.apple.mrj.application.growbox.intrudes=false
28 -Dapple.laf.useScreenMenuBar=true
29 -Xdock:name=JGit
33 esac
35 CLASSPATH="$cp"
36 export CLASSPATH
38 java=java
39 if test -n "$JAVA_HOME"
40 then
41 java="$JAVA_HOME/bin/java"
44 exec "$java" $java_args org.spearce.jgit.pgm.Main "$@"
45 exit 1