-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
executable file
·56 lines (43 loc) · 903 Bytes
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh
export LOCAL_ACLI_DIRECTOR_Y_PROJ_ECT="./camelforth-a"
prequel_a() {
echo
echo " make clean does this:"
echo
echo " rm -rf /tmp/arduino/cores ; rm -rf /tmp/arduino/sketches # elbee"
echo
}
prequel_b() {
cat << _EOF
RUNNING:
arduino-cli compile --fqbn esp32:esp32:esp32 ${1}
_EOF
}
prequel_c() {
cat << _EOF
# arduino-cli compile --fqbn arduino:renesas_uno:unor4wifi ${1}
# ESP32 Dev Module esp32:esp32:esp32
_EOF
}
quiet_payload() {
arduino-cli compile --fqbn esp32:esp32:esp32 \
${LOCAL_ACLI_DIRECTOR_Y_PROJ_ECT}
}
payload() {
arduino-cli -v compile --fqbn esp32:esp32:esp32 \
${LOCAL_ACLI_DIRECTOR_Y_PROJ_ECT}
}
prequel() { # pick and choose
# prequel_a
prequel_b
# prequel_c
}
do_all() {
prequel
# quiet_payload
quiet_payload
# payload
}
do_all
exit 0
# end.