expose the function that finds all the buildable sketches as "find_all_sketches"

pull/914/head
Jesse Vincent 4 years ago
parent 6bf70a2fdc
commit d4a14fa7c9
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -445,7 +445,7 @@ compile () {
FQBN="${SAVED_FQBN}" FQBN="${SAVED_FQBN}"
} }
_find_all () { find_all_sketches () {
for plugin in ./*.ino \ for plugin in ./*.ino \
$([ -d examples ] && find examples -name '*.ino') \ $([ -d examples ] && find examples -name '*.ino') \
src/*.ino; do src/*.ino; do
@ -466,7 +466,7 @@ _find_all () {
} }
build_all () { build_all () {
plugins="$(_find_all)" plugins="$(find_all_sketches)"
for plugin in ${plugins}; do for plugin in ${plugins}; do
export SKETCH="${plugin}" export SKETCH="${plugin}"
@ -477,7 +477,7 @@ build_all () {
compile_all () { compile_all () {
plugins="$(_find_all)" plugins="$(find_all_sketches)"
for plugin in ${plugins}; do for plugin in ${plugins}; do
export SKETCH="${plugin}" export SKETCH="${plugin}"

Loading…
Cancel
Save