feat(docs) add first iteration of compile script

This commit is contained in:
Themba Dube
2021-04-23 17:45:34 -04:00
parent ace2e6af68
commit 6df6cb0ec0
19 changed files with 517 additions and 3 deletions

8
scripts/find_version.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
# Credit: https://stackoverflow.com/a/4774063
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
TMPENVFILE=$(mktemp /tmp/lvgl.script.XXXXXX)
cat $SCRIPTPATH/../lvgl.h | grep "#define LVGL_VERSION_" | sed 's/#define //g' | sed -r 's/\s+/=/' > $TMPENVFILE
. $TMPENVFILE
rm $TMPENVFILE
echo $LVGL_VERSION_MAJOR.$LVGL_VERSION_MINOR