acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
genexamplelist.sh (485B)
1 #!/bin/bash 2 echo "/* Autogenerated */" 3 echo '#include <stddef.h>' 4 echo '#include "examplelist.h"' 5 TMPFILE=$(mktemp) 6 find examples demos -name \*.h | xargs grep -hE "^void lv_(example|demo)" | sed 's/(/ /g' | awk '{print $2}' > $TMPFILE 7 cat $TMPFILE | while read -r line; do 8 echo "extern void ${line}(void);" 9 done 10 echo "const struct lv_ci_example lv_ci_example_list[] = {" 11 cat $TMPFILE | while read -r line; do 12 echo " { \"$line\", $line },"; 13 done 14 echo " { NULL, NULL }" 15 echo "};"