Files
Power-Pico/lv_sim_linux/lvgl/scripts/find_version.sh

5 lines
196 B
Bash
Raw Normal View History

2025-09-11 16:36:41 +08:00
#!/bin/sh
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 || exit ; pwd -P )"
sed -n '/LVGL_VERSION_MAJOR/ {N;s@#define \+LVGL_VERSION_M.... \+@@g;s@\n@.@p}' "$SCRIPTPATH/../lv_version.h"