2016-02-26 17:24:22 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
|
|
|
cd "$(dirname "${0}")/.."
|
|
|
|
|
2016-03-18 16:19:09 +00:00
|
|
|
echo '-X "github.com/abcum/surreal/util/build.rev='$(git rev-parse HEAD)'"' \
|
2019-12-08 13:53:06 +00:00
|
|
|
'-X "github.com/abcum/surreal/util/build.ver='$(git describe --tags --abbrev=0 || echo 0.0.0)'"' \
|
2016-03-18 16:19:09 +00:00
|
|
|
'-X "github.com/abcum/surreal/util/build.time='$(date -u '+%Y/%m/%d %H:%M:%S')'"'
|