From 978a2503d46c9a272ee3ac6243f3461e9ba64377 Mon Sep 17 00:00:00 2001 From: Aurelien Desbrieres Date: Sun, 8 Mar 2015 12:03:49 +0100 Subject: arduino prototyping platform sdk --- pcr/arduino/arduino-fix-arguments.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pcr/arduino/arduino-fix-arguments.patch (limited to 'pcr/arduino/arduino-fix-arguments.patch') 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[@]}" -- cgit v1.2.3