deprecate direct calls to sshconfig

This commit is contained in:
shoopea
2021-11-14 10:53:13 +08:00
parent 0f4fca35f3
commit 119d069083
8 changed files with 285 additions and 206 deletions

13
version.sh Normal file
View File

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