Files
SmartGrow/libraries/lvgl/scripts/find_version.sh
2024-12-09 19:47:18 +01:00

5 lines
196 B
Bash
Executable File

#!/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"