mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 02:53:50 +00:00
14 lines
150 B
Bash
Executable File
14 lines
150 B
Bash
Executable File
#!/bin/bash
|
|
|
|
packageName=version
|
|
version=$(git describe --tags)
|
|
|
|
cat <<END
|
|
// +build release
|
|
|
|
package $packageName
|
|
|
|
const Version = "${version}"
|
|
|
|
END
|