2021-05-04 16:41:56 -04:00
|
|
|
#!/bin/bash
|
|
|
|
echo "/* Autogenerated */"
|
|
|
|
echo '#include <stddef.h>'
|
|
|
|
echo '#include "examplelist.h"'
|
|
|
|
TMPFILE=$(mktemp)
|
2021-12-29 16:10:36 -05:00
|
|
|
find examples demos -name \*.h | xargs grep -hE "^void lv_(example|demo)" | sed 's/(/ /g' | awk '{print $2}' > $TMPFILE
|
2021-05-04 16:41:56 -04:00
|
|
|
cat $TMPFILE | while read -r line; do
|
|
|
|
echo "extern void ${line}(void);"
|
|
|
|
done
|
|
|
|
echo "const struct lv_ci_example lv_ci_example_list[] = {"
|
|
|
|
cat $TMPFILE | while read -r line; do
|
|
|
|
echo " { \"$line\", $line },";
|
|
|
|
done
|
|
|
|
echo " { NULL, NULL }"
|
|
|
|
echo "};"
|