This commit is contained in:
shoopea
2023-06-29 22:58:24 +02:00
parent fb02d525d2
commit 35e234533c
18 changed files with 1646 additions and 1441 deletions

View File

@@ -1,5 +1,6 @@
# Get the version.
githash=`git rev-parse --short HEAD`
branch=`git rev-parse --abbrev-ref HEAD`
buildstamp=`date -u '+%Y-%m-%d_%H:%M:%S'`
commits=`git rev-list --count master`
# Write out the package.
@@ -7,6 +8,7 @@ cat << EOF > version.go
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "$githash"
var branch = "$branch"
var buildstamp = "$buildstamp"
var commits = "$commits"
var version = "$githash-b$commits - $buildstamp"