mirror of
https://github.com/vbatts/tar-split.git
synced 2024-11-26 01:35:39 +00:00
*: adding some version magic
This commit is contained in:
parent
c76e42010e
commit
4f81319c22
3 changed files with 13 additions and 2 deletions
|
@ -1,4 +1,3 @@
|
||||||
// go:generate git tag | tail -1
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -6,13 +5,14 @@ import (
|
||||||
|
|
||||||
"github.com/Sirupsen/logrus"
|
"github.com/Sirupsen/logrus"
|
||||||
"github.com/codegangsta/cli"
|
"github.com/codegangsta/cli"
|
||||||
|
"github.com/vbatts/tar-split/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "tar-split"
|
app.Name = "tar-split"
|
||||||
app.Usage = "tar assembly and disassembly utility"
|
app.Usage = "tar assembly and disassembly utility"
|
||||||
app.Version = "0.9.2"
|
app.Version = version.VERSION
|
||||||
app.Author = "Vincent Batts"
|
app.Author = "Vincent Batts"
|
||||||
app.Email = "vbatts@hashbangbash.com"
|
app.Email = "vbatts@hashbangbash.com"
|
||||||
app.Action = cli.ShowAppHelp
|
app.Action = cli.ShowAppHelp
|
||||||
|
|
4
version/gen.go
Normal file
4
version/gen.go
Normal 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
7
version/version.go
Normal 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"
|
||||||
|
|
Loading…
Reference in a new issue