dispatch/install.sh

10 lines
270 B
Bash
Raw Normal View History

2018-11-16 04:17:20 +00:00
#!/usr/bin/env bash
Import="github.com/khlieng/dispatch/commands"
Version=$(git describe --tags)
Commit=$(git rev-parse --short HEAD)
Date=$(date +'%Y-%m-%dT%TZ')
go install -ldflags "-s -w -X $Import.version=$Version -X $Import.commit=$Commit -X $Import.date=$Date"