sshpiper/sshpiperd/ldflags.sh
2018-12-29 06:12:52 +00:00

8 lines
203 B
Bash
Executable file

#!/bin/bash
cd $GOPATH/src/github.com/tg123/sshpiper
githash=`git log --pretty=format:%h,%ad --name-only --date=short . | head -n 1`
ver=`cat ver`
echo "-X main.version=$ver -X main.githash=$githash"