remove recursion into 'the global set of libraries'

pull/135/head
Jesse Vincent 8 years ago
parent e3c90512e9
commit 532696abb5
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -24,8 +24,7 @@ find_sketch () {
exit 1 exit 1
fi fi
for path in "hardware/keyboardio/avr/libraries/Kaleidoscope-${LIBRARY}/examples/${SKETCH}" \ for path in "examples/${LIBRARY}" \
"examples/${LIBRARY}" \
"src" \ "src" \
"."; do "."; do
if [ -f "${path}/${SKETCH}.ino" ]; then if [ -f "${path}/${SKETCH}.ino" ]; then
@ -139,8 +138,7 @@ compile () {
} }
_find_all () { _find_all () {
for plugin in hardware/keyboardio/avr/libraries/Kaleidoscope-*/examples/* \ for plugin in examples/* \
examples/* \
src/*.ino; do src/*.ino; do
if [ -d "$(dirname ${plugin})" ] || [ -f "${plugin}" ]; then if [ -d "$(dirname ${plugin})" ] || [ -f "${plugin}" ]; then
p="$(basename "${plugin}" .ino)" p="$(basename "${plugin}" .ino)"

Loading…
Cancel
Save