CVS statcvs
Christian Bayle
bayle@haydn.debian.org
Sun Sep 5 14:09:04 2004
Update of /cvsroot/pkg-java/statcvs
In directory haydn:/tmp/cvs-serv8040/statcvs
Modified Files:
statcvs
Log Message:
Some changes on depends and compile
--- /cvsroot/pkg-java/statcvs/statcvs 2003/07/20 22:51:49 1.1
+++ /cvsroot/pkg-java/statcvs/statcvs 2004/09/05 20:08:22 1.2
@@ -1,10 +1,15 @@
#! /bin/sh
-if [ -f /usr/lib/j2se/1.4/bin/java ]
-then
- /usr/lib/j2se/1.4/bin/java -jar /usr/share/java/statcvs.jar $@
-else
- if [ -f /usr/bin/kaffe ]
+# let's try to find a sun JVM
+for javabin in /usr/lib/j2re1.4-sun/bin/java /usr/lib/j2sdk1.4-sun/bin/java /usr/lib/j2se/1.4/bin/java /usr/lib/j2sdk1.4/bin/java /usr/lib/j2re1.4/bin/java
+do
+ if [ -f $javabin ]
then
- /usr/bin/kaffe -classpath /usr/share/kaffe/Klasses.jar:/usr/share/classpath/glibj.zip -jar /usr/share/java/statcvs.jar $@
+ $javabin -jar /usr/share/java/statcvs.jar $@
+ exit $?
fi
+done
+# this should also work with kaffe
+if [ -f /usr/bin/kaffe ]
+then
+ /usr/bin/kaffe -classpath /usr/share/kaffe/Klasses.jar:/usr/share/classpath/glibj.zip -jar /usr/share/java/statcvs.jar $@
fi