mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-10 21:24:12 +01:00
33 lines
787 B
Bash
Executable File
33 lines
787 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CURDIR=`pwd`
|
|
APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
|
|
|
|
cd "$APPDIR"
|
|
|
|
for LIB in \
|
|
java/lib/rt.jar \
|
|
java/lib/tools.jar \
|
|
lib/*.jar \
|
|
;
|
|
do
|
|
CLASSPATH="${CLASSPATH}:${LIB}"
|
|
done
|
|
export CLASSPATH
|
|
|
|
LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
|
|
export LD_LIBRARY_PATH
|
|
|
|
export PATH="${APPDIR}/java/bin:${PATH}"
|
|
|
|
if [[ "$@" == *"--upload"* || "$@" == *"--verify"* || "$@" == *"--get-pref"* || "$@" == *"--install-board"* || "$@" == *"--install-library"* ]] ; then
|
|
SPLASH=""
|
|
else
|
|
SPLASH="-splash:./lib/splash.png"
|
|
fi
|
|
|
|
export JAVA_TOOL_OPTIONS=`echo $JAVA_TOOL_OPTIONS | sed 's|-javaagent:/usr/share/java/jayatanaag.jar||g'`
|
|
|
|
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $SPLASH ArduinoIDE --curdir $CURDIR "$@"
|
|
|