bootchart/bootchart-0.9-nojavafunctions.patch

38 lines
1.1 KiB
Diff
Raw Permalink Normal View History

--- bootchart-0.9/script/bootchart.orig 2006-06-26 16:03:51.000000000 +0200
+++ bootchart-0.9/script/bootchart 2006-06-26 16:07:21.000000000 +0200
@@ -4,21 +4,23 @@
# JPackage Project <http://www.jpackage.org/>
# Source functions library
-if [ -f /usr/share/java-utils/java-functions ] ; then
- . /usr/share/java-utils/java-functions
-else
- echo "Can't find functions library, aborting"
- exit 1
-fi
+#if [ -f /usr/share/java-utils/java-functions ] ; then
+# . /usr/share/java-utils/java-functions
+#else
+# echo "Can't find functions library, aborting"
+# exit 1
+#fi
# Configuration
MAIN_CLASS="org.bootchart.Main"
-BASE_JARS="commons-cli.jar bootchart.jar"
-FLAGS="-Djava.awt.headless=true -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D"
+BASE_JARS="/usr/share/java/bootchart.jar"
+#BASE_JARS="commons-cli.jar bootchart.jar"
+#FLAGS="-Djava.awt.headless=true -Dgnu.java.awt.peer.gtk.Graphics=Graphics2D"
# Set parameters
-set_jvm
-set_classpath $BASE_JARS
+#set_jvm
+#set_classpath $BASE_JARS
# Let's start
-run "$@"
+#run "$@"
+java -cp $BASE_JARS $MAIN_CLASS $@