[d/newrpl] include commits' count in version as upstream does

This commit is contained in:
Gwenhael Le Moine 2022-01-20 15:45:32 +01:00
parent 900c72bfb5
commit f19a34fa01
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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