dispatch/install.sh

10 lines
249 B
Bash
Raw Normal View History

2018-12-02 07:39:23 +01:00
#!/bin/sh -
2018-11-16 05:17:20 +01:00
2018-11-22 11:31:02 +01:00
Import="github.com/khlieng/dispatch/version"
2018-11-16 05:17:20 +01:00
2018-11-22 11:31:02 +01:00
Tag=$(git describe --tags)
2018-11-16 05:17:20 +01:00
Commit=$(git rev-parse --short HEAD)
Date=$(date +'%Y-%m-%dT%TZ')
2018-11-22 11:31:02 +01:00
go install -ldflags "-s -w -X $Import.Tag=$Tag -X $Import.Commit=$Commit -X $Import.Date=$Date"