sshpiper/sshpiperd/ldflags.sh
Boshi Lian 2f8cef360d
move to go mod (#38)
Move to go 1.12 mod
2019-08-20 16:29:18 -07:00

8 lines
201 B
Bash
Executable file

#!/bin/sh
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"