File: JFractionLab

package info (click to toggle)
jfractionlab 0.92-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,448 kB
  • sloc: java: 10,103; sh: 182; makefile: 18
file content (27 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (6)
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
#!/bin/sh

# jfractionlab wrapper script
# code for java detection based on tuxguitar code
# but adding detection of alternatives for jclic

if [ -z $JAVA_HOME ] ; then

	ALTERNATIVE=`ls -l /etc/alternatives/java|grep sun`
	if [ -z "$ALTERNATIVE" ]; then
		ALTERNATIVE=`ls -l /etc/alternatives/java|grep jdk`
	fi
	
	if [ -z "$ALTERNATIVE" ]; then
        	t=/usr/lib/jvm/java-1.5.0-sun && test -d $t && JAVA_HOME=$t
        	t=/usr/lib/jvm/java-6-sun && test -d $t && JAVA_HOME=$t
	        t=/usr/lib/jvm/java-7-icedtea && test -d $t && JAVA_HOME=$t
        	JAVA=${JAVA_HOME}/jre/bin/java
	fi
fi

export JAVA=${JAVA:=java}



exec $JAVA -client -jar /usr/share/jfractionlab/bin/JFractionLab.jar "$@" > /dev/null 2>&1