Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 242 Bytes
#!/bin/bash
cd `dirname $0`
TAG=`git describe 2> /dev/null`
REV=`git rev-parse --short HEAD 2> /dev/null`
if [ -z "$TAG" ];
then
TAG="-"
fi
if [ -z "$REV" ];
then
REV="-"
fi
go install -ldflags "-X main.tag $TAG -X main.rev $REV"