diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-03-08 23:13:40 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-03-08 23:13:40 -0300 |
commit | 6930853a9232d97626c3c6c9670d3f9d9461e773 (patch) | |
tree | 88983fdbe4e6f43d283e399ec3c6a59c552faaf3 /pcr/arduino/arduino-fix-arguments.patch | |
parent | c1da9a13d606241310cdbaf04d7872ec93910463 (diff) | |
parent | 3b99b8aa01cb3086c1053386d7de7ab6161eef56 (diff) |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/arduino/arduino-fix-arguments.patch')
-rw-r--r-- | pcr/arduino/arduino-fix-arguments.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pcr/arduino/arduino-fix-arguments.patch b/pcr/arduino/arduino-fix-arguments.patch new file mode 100644 index 000000000..1cafeedde --- /dev/null +++ b/pcr/arduino/arduino-fix-arguments.patch @@ -0,0 +1,25 @@ +--- a/arduino 2013-04-11 13:31:37.000000000 +0200 ++++ b/arduino 2014-01-12 15:18:46.159694131 +0100 +@@ -2,6 +2,16 @@ + + APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )" + ++args=() ++for arg in "$@" ++do ++ if [[ "$arg" == -* ]]; then ++ args+=("$arg") ++ else ++ args+=("$(realpath "$arg")") ++ fi ++done ++ + cd "$APPDIR" + + for LIB in \ +@@ -19,4 +29,4 @@ + + export PATH="${APPDIR}/java/bin:${PATH}" + +-java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "$@" ++java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel processing.app.Base "${args[@]}" |