convert lvgl from submodule to a plain old directory

This commit is contained in:
jacqueline
2023-06-01 15:41:47 +10:00
parent 6fd588e970
commit dd27c35304
1173 changed files with 359339 additions and 4 deletions
+8
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