From f19a34fa01220960885517581b73cb139eb64616 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 20 Jan 2022 15:45:32 +0100 Subject: [PATCH] [d/newrpl] include commits' count in version as upstream does --- d/newrpl/SlackBuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/d/newrpl/SlackBuild b/d/newrpl/SlackBuild index 3439651e..98c6834c 100755 --- a/d/newrpl/SlackBuild +++ b/d/newrpl/SlackBuild @@ -3,8 +3,7 @@ # variables VERSION=${VERSION:-"trunk"} -BUILD=2 - +BUILD=3 TAG=gwh OUTPUT=/tmp TMP=/tmp/$TAG @@ -33,7 +32,7 @@ git pull --all cp -R $REPOSITORY $TMP/ cd $TMP/$PRGNAM/ -[ "x$VERSION" == "xtrunk" ] && VERSION="git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION +[ "x$VERSION" == "xtrunk" ] && VERSION="$(git rev-list --count master)_git_$(git log -1 --format=%h_%ad --date=format:%Y.%m.%d)" || git checkout $VERSION # https://www.hpmuseum.org/forum/thread-17667-post-154012.html#pid154012 # elf2rom is only needed to build actual calculator firmware