mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add git ref to the version suffix
This commit is contained in:
parent
0abd551f1c
commit
533a0259a0
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
PACKAGE_NAME=version
|
||||
REF=$(git show -s --format=%h -1)
|
||||
VERSION=$VERSION-$REF
|
||||
|
||||
if [[ -z $VERSION ]] ; then
|
||||
VERSION=$(git describe --tags)
|
||||
|
@ -13,4 +14,6 @@ package $PACKAGE_NAME
|
|||
|
||||
const Version = "${VERSION}"
|
||||
|
||||
const VersionGitRef = "${REF}"
|
||||
|
||||
END
|
||||
|
|
Loading…
Reference in New Issue
Block a user