From: Apaczer <94932128+Apaczer@users.noreply.github.com> Date: Mon, 15 Jul 2024 21:13:09 +0000 (+0200) Subject: platform/miyoo: scripted versioning X-Git-Tag: v2.00~3 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a347fbe946e4ee4ae0687f4139a8f6f0aa179cd;p=picodrive.git platform/miyoo: scripted versioning update pkg.cfg --- diff --git a/platform/miyoo/pkg.cfg b/platform/miyoo/pkg.cfg index dd5fa0d8..940cf277 100644 --- a/platform/miyoo/pkg.cfg +++ b/platform/miyoo/pkg.cfg @@ -12,8 +12,8 @@ CLEAN="" # ENV VAR. ## Specific (mandatory to provide!) TARGET="picodrive" # replace with binary name -VERSION="v2.00" # replace with correct release version if exist - +VERSION="$(cut -d'"' -f2 platform/common/version.h)" # replace with correct release version if exist +test "$(git describe --tags --exact-match HEAD 2>/dev/null)" == "" && VERSION="${VERSION}-$(git rev-parse --short HEAD || echo unknown)" ## Generic - common to all apps (better to not modify) HOMEPATH="/mnt" RELEASEDIR=""