dispatch/install.sh

10 lines
263 B
Bash
Raw Normal View History

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