bbgo_origin/utils/generate-version-file.sh
2021-02-23 09:32:34 +08:00

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