./prog.sh: line 1: CORE_BOARD_CONFIGS: command not found
./prog.sh: line 2: CORE_BOARD_CONFIGS: command not found
./prog.sh: line 2: SKETCHES: command not found
./prog.sh: line 2: BUILDDIR: command not found
./prog.sh: line 2: cfg: command not found
./prog.sh: line 2: subst: command not found
./prog.sh: line 2: sketch: command not found
basename: missing operand
Try 'basename --help' for more information.
./prog.sh: line 2: notdir: command not found
./prog.sh: line 2: foreach: command not found
./prog.sh: line 2: foreach: command not found
./prog.sh: line 2: BUILD_TARGETS: command not found
./prog.sh: line 3: BUILD_TARGETS: command not found