Removeo outdated and unused 'LIBRARY' env variable

pull/932/head
Jesse Vincent 4 years ago
parent a278efc21e
commit dfadd32400
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -131,9 +131,8 @@ firmware_size () {
find_sketch () {
SKETCH="${SKETCH:-${DEFAULT_SKETCH}}"
LIBRARY="${LIBRARY:-${SKETCH}}"
if [ -z "${SKETCH}" ] || [ -z "${LIBRARY}" ] || [ -z "${ROOT}" ] || [ -z "${SOURCEDIR}" ]; then
echo "SKETCH, LIBRARY, SOURCEDIR, and ROOT need to be set before including this file!" >&2
if [ -z "${SKETCH}" ] || [ -z "${ROOT}" ] || [ -z "${SOURCEDIR}" ]; then
echo "SKETCH, SOURCEDIR, and ROOT need to be set before including this file!" >&2
exit 1
fi
@ -141,7 +140,6 @@ find_sketch () {
SKETCH_FILE=$(basename "$SKETCH")
for path in "${SKETCH_DIR}" \
"examples/${LIBRARY}" \
"src" \
"."; do
if [ -f "${path}/${SKETCH_FILE}.ino" ]; then
@ -473,7 +471,6 @@ build_all () {
for plugin in ${plugins}; do
export SKETCH="${plugin}"
export LIBRARY="${plugin}"
$0 "${plugin}" build
done
}
@ -484,7 +481,6 @@ compile_all () {
for plugin in ${plugins}; do
export SKETCH="${plugin}"
export LIBRARY="${plugin}"
$0 "${plugin}" compile
done
}
@ -723,10 +719,7 @@ for i in $(seq 1 $#); do
shift
done
LIBRARY="${SKETCH}"
export SKETCH
export LIBRARY
for cmd in ${cmds}; do
${cmd}

@ -1,10 +1,9 @@
# -*- shell-script -*-
## NEEDS: LIBRARY, SKETCH, ROOT, SOURCEDIR
## NEEDS: SKETCH, ROOT, SOURCEDIR
## Should be included when the current directory is the dir of the Sketch.
SKETCH="${SKETCH:-${DEFAULT_SKETCH}}"
LIBRARY="${LIBRARY:-${SKETCH}}"
########
######## Keyboard hardware definitions

Loading…
Cancel
Save