From 532696abb51dd9ed4f3d1aca8b5e60449e0403ef Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 23 May 2017 11:49:32 -0700 Subject: [PATCH] remove recursion into 'the global set of libraries' --- tools/kaleidoscope-builder | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/kaleidoscope-builder b/tools/kaleidoscope-builder index 8822a532..d29bba67 100755 --- a/tools/kaleidoscope-builder +++ b/tools/kaleidoscope-builder @@ -24,8 +24,7 @@ find_sketch () { exit 1 fi - for path in "hardware/keyboardio/avr/libraries/Kaleidoscope-${LIBRARY}/examples/${SKETCH}" \ - "examples/${LIBRARY}" \ + for path in "examples/${LIBRARY}" \ "src" \ "."; do if [ -f "${path}/${SKETCH}.ino" ]; then @@ -139,8 +138,7 @@ compile () { } _find_all () { - for plugin in hardware/keyboardio/avr/libraries/Kaleidoscope-*/examples/* \ - examples/* \ + for plugin in examples/* \ src/*.ino; do if [ -d "$(dirname ${plugin})" ] || [ -f "${plugin}" ]; then p="$(basename "${plugin}" .ino)"