Auto detect sketchbook location even in MAC
This commit is contained in:
parent
5045345467
commit
0966e8e5f3
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue