aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabriel <gabriel@gaftech.fr>2012-12-17 13:33:33 +0100
committergabriel <gabriel@gaftech.fr>2012-12-17 13:33:33 +0100
commit142098be085c235457236c68b8a78e9391d8eb76 (patch)
tree689fae29e8a4fa81adac194297b507077d4eeb94
parente3b86053ebe568c59060d01911566cb8ae9e3b47 (diff)
parentec7f239bce5a7df695a2bdbba6ee46c3b39f028d (diff)
Merge branch 'master' of https://github.com/sudar/Arduino-Makefile
-rwxr-xr-xbin/ard-parse-boards11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/ard-parse-boards b/bin/ard-parse-boards
index 680acee..2e975bb 100755
--- a/bin/ard-parse-boards
+++ b/bin/ard-parse-boards
@@ -8,9 +8,14 @@ use Pod::Usage;
use YAML;
my %Opt =
- (
- boards_txt => "$ENV{'ARDUINO_DIR'}/hardware/arduino/boards.txt",
- );
+ (
+ boards_txt => '/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/boards.txt',
+ );
+
+# if the ARDUINO_DIR is defined, then use it
+if (defined $ENV{'ARDUINO_DIR'}) {
+ $Opt{boards_txt} = "$ENV{'ARDUINO_DIR'}/hardware/arduino/boards.txt";
+}
GetOptions(\%Opt,
"boards_txt=s", # filename of the boards.txt file