1
0
Fork 0
forked from mirrors/tar-split

*: adding some version magic

This commit is contained in:
Vincent Batts 2015-08-14 10:02:46 -04:00
parent c76e42010e
commit 4f81319c22
3 changed files with 13 additions and 2 deletions

View file

@ -1,4 +1,3 @@
// go:generate git tag | tail -1
package main
import (
@ -6,13 +5,14 @@ import (
"github.com/Sirupsen/logrus"
"github.com/codegangsta/cli"
"github.com/vbatts/tar-split/version"
)
func main() {
app := cli.NewApp()
app.Name = "tar-split"
app.Usage = "tar assembly and disassembly utility"
app.Version = "0.9.2"
app.Version = version.VERSION
app.Author = "Vincent Batts"
app.Email = "vbatts@hashbangbash.com"
app.Action = cli.ShowAppHelp

4
version/gen.go Normal file
View file

@ -0,0 +1,4 @@
package version
// from `go get github.com/vbatts/go-get-version`
//go:generate go-get-version -package version -variable VERSION -output version.go

7
version/version.go Normal file
View file

@ -0,0 +1,7 @@
package version
// AUTO-GENEREATED. DO NOT EDIT
// 2015-08-14 09:56:50.742727493 -0400 EDT
// VERSION is the generated version from /home/vbatts/src/vb/tar-split/version
var VERSION = "v0.9.6-1-gc76e420"