bbgo_origin/utils/generate-version-file.sh

14 lines
150 B
Bash
Raw Normal View History

2021-02-22 07:16:12 +00:00
#!/bin/bash
packageName=version
version=$(git describe --tags)
cat <<END
// +build release
package $packageName
const Version = "${version}"
END