Skip to content

Commit

Permalink
Merge pull request #127 from cloudwan/add_git_version_for_binary
Browse files Browse the repository at this point in the history
Add git version in build
  • Loading branch information
nati committed Mar 30, 2016
2 parents b03871a + 12eb36c commit d4574b4
Show file tree
Hide file tree
Showing 8 changed files with 267 additions and 223 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ lint:

build: deps
@echo "$(OK_COLOR)==> Building$(NO_COLOR)"
./tools/version.sh
go run ./extension/gohanscript/tools/gen.go genlib -t extension/gohanscript/templates/lib.tmpl -p github.com/cloudwan/gohan/extension/gohanscript/lib -e autogen -ep extension/gohanscript/autogen
$(GO_BUILD)

Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func Run(name, usage, version string) {
app := cli.NewApp()
app.Name = "gohan"
app.Usage = "Gohan"
app.Version = "0.1.0"
app.Version = schema.BuildVersion
app.Flags = []cli.Flag{
cli.BoolFlag{Name: "debug, d", Usage: "Show debug messages"},
}
Expand Down
Loading

0 comments on commit d4574b4

Please sign in to comment.