Keep track of my drinks.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
1.0 KiB

#!/bin/sh
CAKELISP_DIR=Dependencies/cakelisp
# Build Cakelisp itself
echo "\n\nCakelisp\n\n"
cd $CAKELISP_DIR || exit $?
./Build.sh || exit $?
cd ../..
echo "\n\nDrink Counter\n\n"
CAKELISP=./Dependencies/cakelisp/bin/cakelisp
# Arduino will build our file
$CAKELISP --verbose-processes --skip-build \
src/Config_Linux.cake \
src/DrinkCounter.cake || exit $?
# Arduino build expects things to have specific names and extensions
mv cakelisp_cache/DrinkCounter/DrinkCounter.cake.c cakelisp_cache/DrinkCounter/DrinkCounter.ino || exit $?
cp src/LowPower.* cakelisp_cache/DrinkCounter/ || exit $?
mv cakelisp_cache/DrinkCounter/LowPower.c cakelisp_cache/DrinkCounter/LowPower.ino || exit $?
/media/macoy/Preserve/Programs/arduino-cli_0.29.0-rc.1_Linux_64bit/arduino-cli --no-color \
compile -b arduino:avr:uno ./cakelisp_cache/DrinkCounter/DrinkCounter.ino || exit $?
/media/macoy/Preserve/Programs/arduino-cli_0.29.0-rc.1_Linux_64bit/arduino-cli --no-color \
upload -b arduino:avr:uno --port /dev/ttyACM0 ./cakelisp_cache/DrinkCounter || exit $?