diff --git a/Makefile b/Makefile index 308c6e8..ee6414f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -GITREV=`git describe --tags` +GITREV=`git describe --tags | cut -c 2-` LDFLAGS=-ldflags="-X 'github.com/writeas/writefreely.softwareVer=$(GITREV)'" GOCMD=go @@ -32,6 +32,6 @@ ui : force_look clean : cd less/; $(MAKE) clean $(MFLAGS) - + force_look : true diff --git a/app.go b/app.go index 35ce444..ada7392 100644 --- a/app.go +++ b/app.go @@ -36,8 +36,7 @@ const ( ) // Software version can be set from git env using -ldflags -var softwareVer = "v0.3" - +var softwareVer = "0.3" var ( debugging bool @@ -135,7 +134,7 @@ func pageForReq(app *app, r *http.Request) page.StaticPage { p := page.StaticPage{ AppCfg: app.cfg.App, Path: r.URL.Path, - Version: softwareVer, + Version: "v" + softwareVer, } // Add user information, if given