mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-27 01:05:15 +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
|