diff options
| author | Sudar <sudar@sudarmuthu.com> | 2012-12-23 15:42:30 +0530 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2012-12-23 15:42:30 +0530 |
| commit | 0966e8e5f3df8cfd2d96c470fcfca6095f23a4b1 (patch) | |
| tree | ecadc9d2ff1891c3f84a9290defeab7270f3dc28 /arduino-mk/Arduino.mk | |
| parent | 50453454677651bc5638c68d63b291cb9ffbfff9 (diff) | |
Auto detect sketchbook location even in MAC
Diffstat (limited to 'arduino-mk/Arduino.mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index b915445..ec5a758 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -478,6 +478,14 @@ ifndef ARDUINO_SKETCHBOOK $(HOME)/.arduino/preferences.txt | \ sed -e 's/sketchbook.path=//' ) endif + + # on mac + ifneq ($(wildcard $(HOME)/Library/Arduino/preferences.txt),) + ARDUINO_SKETCHBOOK = $(shell grep --max-count=1 --regexp="sketchbook.path=" \ + $(HOME)/Library/Arduino/preferences.txt | \ + sed -e 's/sketchbook.path=//' ) + endif + ifneq ($(ARDUINO_SKETCHBOOK),) $(call show_config_variable,ARDUINO_SKETCHBOOK,[AUTODETECTED],(in arduino preferences file)) else |
