7 lines
142 B
Bash
7 lines
142 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
ver=$(git describe --tags 2> /dev/null)
|
||
|
if [ "$ver" == "" ]; then ver='master'; fi
|
||
|
|
||
|
go run -ldflags "-X main.version=$ver" *.go $*
|