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