mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +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
|