diff --git a/cmd/tar-split/main.go b/cmd/tar-split/main.go index f24dce5..b417120 100644 --- a/cmd/tar-split/main.go +++ b/cmd/tar-split/main.go @@ -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 diff --git a/version/gen.go b/version/gen.go new file mode 100644 index 0000000..d290d83 --- /dev/null +++ b/version/gen.go @@ -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 diff --git a/version/version.go b/version/version.go new file mode 100644 index 0000000..0b86fbf --- /dev/null +++ b/version/version.go @@ -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" + \ No newline at end of file