mirror of
https://github.com/mickael-menu/zk
synced 2024-11-13 01:10:43 +00:00
7 lines
209 B
Bash
Executable File
7 lines
209 B
Bash
Executable File
#!/bin/bash
|
|
|
|
VERSION=`git describe --tags --match v[0-9]* 2> /dev/null`
|
|
BUILD=`git rev-parse --short HEAD`
|
|
|
|
CGO_ENABLED=1 go $1 -tags "fts5 icu" -ldflags "-X=main.Version=$VERSION -X=main.Build=$BUILD" ${@:2}
|