mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53: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
|
#!/bin/bash
|
||||||
|
|
||||||
packageName=version
|
PACKAGE_NAME=version
|
||||||
version=$(git describe --tags)
|
|
||||||
|
if [[ -z $VERSION ]] ; then
|
||||||
|
VERSION=$(git describe --tags)
|
||||||
|
fi
|
||||||
|
|
||||||
cat <<END
|
cat <<END
|
||||||
// +build release
|
// +build release
|
||||||
|
|
||||||
package $packageName
|
package $PACKAGE_NAME
|
||||||
|
|
||||||
const Version = "${version}"
|
const Version = "${VERSION}"
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
Loading…
Reference in New Issue
Block a user