mirror of https://github.com/on4kjm/FLEcli.git
parent
ec01766a8c
commit
c7a694cceb
@ -1,4 +0,0 @@
|
|||||||
package cmd
|
|
||||||
|
|
||||||
//VersionString is the version that will be displayed with the -v switch
|
|
||||||
const VersionString = "v0.0.0-1-gb4c7401 (2020-07-18)"
|
|
@ -1,13 +0,0 @@
|
|||||||
#!/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