2015-03-11 16:26:59 +01:00
|
|
|
#!/bin/bash
|
2013-10-28 10:10:14 +01:00
|
|
|
|
|
|
|
CURDIR=`pwd`
|
2012-11-03 17:37:50 +01:00
|
|
|
APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
|
2010-01-29 21:53:21 +01:00
|
|
|
|
2012-11-03 17:37:50 +01:00
|
|
|
cd "$APPDIR"
|
2013-10-28 10:10:14 +01:00
|
|
|
|
2009-05-31 17:53:33 +02:00
|
|
|
for LIB in \
|
|
|
|
java/lib/rt.jar \
|
|
|
|
java/lib/tools.jar \
|
|
|
|
lib/*.jar \
|
|
|
|
;
|
|
|
|
do
|
2010-11-27 19:50:33 +01:00
|
|
|
CLASSPATH="${CLASSPATH}:${LIB}"
|
2009-05-31 17:53:33 +02:00
|
|
|
done
|
|
|
|
export CLASSPATH
|
|
|
|
|
2010-11-27 23:57:02 +01:00
|
|
|
LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
2009-08-03 22:57:46 +02:00
|
|
|
export LD_LIBRARY_PATH
|
|
|
|
|
2009-05-31 17:53:33 +02:00
|
|
|
export PATH="${APPDIR}/java/bin:${PATH}"
|
|
|
|
|
2015-04-08 13:59:29 +02:00
|
|
|
if [[ "$@" == *"--upload"* || "$@" == *"--verify"* || "$@" == *"--get-pref"* || "$@" == *"--install-board"* || "$@" == *"--install-library"* ]] ; then
|
2015-03-11 16:26:59 +01:00
|
|
|
SPLASH=""
|
|
|
|
else
|
|
|
|
SPLASH="-splash:./lib/splash.png"
|
|
|
|
fi
|
|
|
|
|
2015-05-12 10:48:53 +02:00
|
|
|
export JAVA_TOOL_OPTIONS=`echo $JAVA_TOOL_OPTIONS | sed 's|-javaagent:/usr/share/java/jayatanaag.jar||g'`
|
|
|
|
|
2015-05-14 11:19:36 +02:00
|
|
|
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $SPLASH processing.app.Base --curdir $CURDIR "$@"
|
2013-10-28 10:10:14 +01:00
|
|
|
|