mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 08:15:15 +00:00
17 lines
188 B
Bash
Executable File
17 lines
188 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PACKAGE_NAME=version
|
|
|
|
if [[ -z $VERSION ]] ; then
|
|
VERSION=$(git describe --tags)
|
|
fi
|
|
|
|
cat <<END
|
|
// +build release
|
|
|
|
package $PACKAGE_NAME
|
|
|
|
const Version = "${VERSION}"
|
|
|
|
END
|