source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/arduino @ 46

Last change on this file since 46 was 46, checked in by jrpelegrina, 4 years ago

First release to Xenial

  • Property svn:executable set to *
File size: 1008 bytes
Line 
1#!/usr/bin/env bash
2
3APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
4
5for LIB in \
6    "$APPDIR"/java/lib/rt.jar \
7    "$APPDIR"/java/lib/tools.jar \
8    "$APPDIR"/lib/*.jar \
9    ;
10do
11    CLASSPATH="${CLASSPATH}:${LIB}"
12done
13export CLASSPATH
14
15LD_LIBRARY_PATH=$APPDIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
16export LD_LIBRARY_PATH
17
18export PATH="${APPDIR}/java/bin:${PATH}"
19
20export JAVA_TOOL_OPTIONS=`echo $JAVA_TOOL_OPTIONS | sed 's|-javaagent:/usr/share/java/jayatanaag.jar||g'`
21
22JAVA=java
23if [ -x "$APPDIR/java/bin/java" ]; then
24  JAVA=$APPDIR/java/bin/java
25fi
26
27# Collect options to java in an array, to properly handle whitespace in options
28JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")
29
30if [[ "$@" != *"--upload"* && "$@" != *"--verify"* && "$@" != *"--get-pref"* && "$@" != *"--install-board"* && "$@" != *"--install-library"* ]] ; then
31        JAVA_OPTIONS+=("-splash:$APPDIR/lib/splash.png")
32fi
33
34"$JAVA" "${JAVA_OPTIONS[@]}" processing.app.Base "$@"
35
Note: See TracBrowser for help on using the repository browser.