Index: ganttproject.sh
--- ganttproject.sh.orig	2008-12-14 19:34:20 +0100
+++ ganttproject.sh	2009-03-27 11:22:46 +0100
@@ -1,34 +1,9 @@
-#!/bin/bash
-
-GP_HOME=.
-COMMAND_PATH=`echo ${0} | sed -e "s/\(.*\)\/.*$/\1/g"`
-cd ${COMMAND_PATH}
-
+#!/bin/sh
+  
+GP_HOME=@l_prefix@/libexec/ganttproject
 LOCAL_CLASSPATH=$GP_HOME/eclipsito.jar
-
-CONFIGURATION_FILE=ganttproject-eclipsito-config.xml
+CONFIGURATION_FILE=@l_prefix@/etc/ganttproject/ganttproject-eclipsito-config.xml
 BOOT_CLASS=org.bardsoftware.eclipsito.Boot
-LOG_FILE=$HOME/.ganttproject.log
-
-if [ -z $JAVA_HOME ]; then
-  JAVA_COMMAND=`which java`
-  if [ "$?" = "1" ]; then
-    echo "No executable java found. Please set JAVA_HOME variable";
-    exit;
-  fi
-else
-  JAVA_COMMAND=$JAVA_HOME/bin/java
-fi
-if [ ! -x $JAVA_COMMAND ]; then
-  echo "$JAVA_COMMAND is not executable. Please check the permissions."
-  exit
-fi
-
-if [ -e $LOG_FILE ] && [ ! -w $LOG_FILE ]; then
-  echo "Log file $LOG_FILE is not writable"
-  exit
-fi
-
-$JAVA_COMMAND -Xmx256m -classpath $CLASSPATH:$LOCAL_CLASSPATH $BOOT_CLASS $CONFIGURATION_FILE -log $LOG_FILE "$@" 
-
+JAVA_COMMAND=@l_prefix@/bin/java
+$JAVA_COMMAND -Xmx256m -classpath $CLASSPATH:$LOCAL_CLASSPATH $BOOT_CLASS $CONFIGURATION_FILE $*
 
