/[debian]/jabref/branches/2.4/debian/jabref-wrapper
ViewVC logotype

Diff of /jabref/branches/2.4/debian/jabref-wrapper

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1499 by gregoa, Thu May 1 23:32:44 2008 UTC revision 1500 by gregoa, Fri Nov 21 21:03:31 2008 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  # jabref wrapper script  # Include the wrappers utility script
4  # code for java detection borrowed from tuxguitar  . /usr/lib/java-wrappers/java-wrappers.sh
5    
6  if [ -z "$JAVA_HOME" ] ; then  # We need openjdk6 or sun{5,6} runtime.
7          t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t  find_java_runtime openjdk || find_java_runtime sunmin5
         t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t  
         t=/usr/lib/jvm/java-6-openjdk && test -d $t && JAVA_HOME=$t  
         test -n "$JAVA_HOME" && JAVA=${JAVA_HOME}/jre/bin/java  
 fi  
8    
9  export JAVA=${JAVA:=java}  find_jars jabref antlr antlr3 looks forms spin glazedlists microba pdfbox jempbox
10    
11  exec $JAVA -jar /usr/share/java/jabref.jar "$@"  run_java net.sf.jabref.JabRefMain "$@"

Legend:
Removed from v.1499  
changed lines
  Added in v.1500

  ViewVC Help
Powered by ViewVC 1.1.26