mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
improve Makefile for building dist and versions
This commit is contained in:
parent
f67075c818
commit
d60d13d9db
|
@ -1,13 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
packageName=version
|
||||
version=$(git describe --tags)
|
||||
PACKAGE_NAME=version
|
||||
|
||||
if [[ -z $VERSION ]] ; then
|
||||
VERSION=$(git describe --tags)
|
||||
fi
|
||||
|
||||
cat <<END
|
||||
// +build release
|
||||
|
||||
package $packageName
|
||||
package $PACKAGE_NAME
|
||||
|
||||
const Version = "${version}"
|
||||
const Version = "${VERSION}"
|
||||
|
||||
END
|
||||
|
|
Loading…
Reference in New Issue
Block a user