bbgo_origin/utils/generate-version-file.sh

17 lines
188 B
Bash
Raw Normal View History

2021-02-22 07:16:12 +00:00
#!/bin/bash
PACKAGE_NAME=version
if [[ -z $VERSION ]] ; then
VERSION=$(git describe --tags)
fi
2021-02-22 07:16:12 +00:00
cat <<END
// +build release
package $PACKAGE_NAME
2021-02-22 07:16:12 +00:00
const Version = "${VERSION}"
2021-02-22 07:16:12 +00:00
END