mirror of https://github.com/on4kjm/FLEcli.git
parent
efb75a4d4e
commit
0716f4565a
@ -1,4 +1,4 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
//VersionString is the version that will be displayed with the -v switch
|
//VersionString is the version that will be displayed with the -v switch
|
||||||
const VersionString = "v0.0.0.0-1-gb264805 (2020-07-13)"
|
const VersionString = "v0.0.0.0-3-gefb75a4 (2020-07-13)"
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
VERSION_FROM_GIT=$(git describe --tags)
|
||||||
|
BUILD_TIME=$(date +%F)
|
||||||
|
|
||||||
|
echo "Building version ${VERSION_FROM_GIT}"
|
||||||
|
|
||||||
|
echo "package cmd" > cmd/FLEcli_version.go
|
||||||
|
echo " " >> cmd/FLEcli_version.go
|
||||||
|
echo "//VersionString is the version that will be displayed with the -v switch" >> cmd/FLEcli_version.go
|
||||||
|
echo "const VersionString = \"${VERSION_FROM_GIT} (${BUILD_TIME})\"" >> cmd/FLEcli_version.go
|
Loading…
Reference in new issue