Advertisement
Guest User

arduino script after modification

a guest
Sep 27th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. CURDIR=`pwd`
  4. APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
  5.  
  6. cd "$APPDIR"
  7.  
  8. for LIB in \
  9. java/lib/rt.jar \
  10. java/lib/tools.jar \
  11. lib/*.jar \
  12. ;
  13. do
  14. CLASSPATH="${CLASSPATH}:${LIB}"
  15. done
  16. export CLASSPATH
  17.  
  18. export JAVA_TOOL_OPTIONS=""
  19.  
  20. LD_LIBRARY_PATH=`pwd`/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
  21. export LD_LIBRARY_PATH
  22.  
  23. export PATH="${APPDIR}/java/bin:${PATH}"
  24.  
  25. if [[ "$@" == *"--upload"* || "$@" == *"--verify"* || "$@" == *"--get-pref"* ]] ; then
  26. SPLASH=""
  27. else
  28. SPLASH="-splash:./lib/splash.png"
  29. fi
  30.  
  31. java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $SPLASH processing.app.Base --curdir $CURDIR "$@"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement