8 lines
203 B
Bash
Executable file
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"
|