first commit
This commit is contained in:
commit
e6a42e28e9
4355 changed files with 4626605 additions and 0 deletions
8
libraries/lvgl/scripts/find_version.sh
Normal file
8
libraries/lvgl/scripts/find_version.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue