lvgl/scripts/find_version.sh
Marex 9aa95c3f47
docs: simplify the find_version script and fix shellcheck report in it (#6133)
Signed-off-by: Marek Vasut <marex@denx.de>
Co-authored-by: Marek Vasut <marex@denx.de>
2024-05-03 09:49:24 +02: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"