You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FLEcli/update-version.sh

14 lines
406 B

#!/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