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

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

Loading…
Cancel
Save