surrealpatch/build/flags.sh

10 lines
342 B
Bash
Raw Normal View History

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