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 |
find_version.sh (357B)
1 #!/bin/bash 2 # Credit: https://stackoverflow.com/a/4774063 3 SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" 4 TMPENVFILE=$(mktemp /tmp/lvgl.script.XXXXXX) 5 cat $SCRIPTPATH/../lvgl.h | grep "#define LVGL_VERSION_" | sed 's/#define //g' | sed -r 's/\s+/=/' > $TMPENVFILE 6 . $TMPENVFILE 7 rm $TMPENVFILE 8 echo $LVGL_VERSION_MAJOR.$LVGL_VERSION_MINOR