mage: add version rule

This commit is contained in:
Cadey Ratio 2017-10-01 10:13:25 -07:00
parent 121f7fa52c
commit 9b0c00cefd
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 6 additions and 0 deletions

View File

@ -186,3 +186,9 @@ func Package() {
shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".") shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".")
} }
} }
func Version() {
ver, err := gitTag()
qod.ANE(err)
qod.Printlnf("route-%s", ver)
}