[d/newrpl] include commits' count in version as upstream does
This commit is contained in:
parent
900c72bfb5
commit
f19a34fa01
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue