dispatch/install.sh
2018-12-02 07:39:23 +01:00

10 lines
249 B
Bash
Executable File

#!/bin/sh -
Import="github.com/khlieng/dispatch/version"
Tag=$(git describe --tags)
Commit=$(git rev-parse --short HEAD)
Date=$(date +'%Y-%m-%dT%TZ')
go install -ldflags "-s -w -X $Import.Tag=$Tag -X $Import.Commit=$Commit -X $Import.Date=$Date"