Bump version 1.0.0

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-03-30 11:53:26 +08:00
parent 4571403ac1
commit b511a8edcb
7 changed files with 18 additions and 35 deletions
+3
View File
@@ -6,10 +6,13 @@
[4]: https://github.com/zhaojh329/rttys/pulls
[5]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg?style=plastic
[6]: https://github.com/zhaojh329/rttys/issues/new
[7]: https://img.shields.io/badge/release-1.0.0-blue.svg?style=plastic
[8]: https://github.com/zhaojh329/rttys/releases
[![license][1]][2]
[![PRs Welcome][3]][4]
[![Issue Welcome][5]][6]
[![Release Version][7]][8]
The server side of [rtty](https://github.com/zhaojh329/rtty)
+3
View File
@@ -6,10 +6,13 @@
[4]: https://github.com/zhaojh329/rttys/pulls
[5]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg?style=plastic
[6]: https://github.com/zhaojh329/rttys/issues/new
[7]: https://img.shields.io/badge/release-1.0.0-blue.svg?style=plastic
[8]: https://github.com/zhaojh329/rttys/releases
[![license][1]][2]
[![PRs Welcome][3]][4]
[![Issue Welcome][5]][6]
[![Release Version][7]][8]
[rtty](https://github.com/zhaojh329/rtty)的服务端。
+1 -3
View File
@@ -31,7 +31,6 @@ import (
"encoding/json"
_ "github.com/zhaojh329/rttys/statik"
"github.com/rakyll/statik/fs"
"github.com/zhaojh329/rttys/version"
)
type DeviceInfo struct {
@@ -56,8 +55,7 @@ func main() {
rand.Seed(time.Now().Unix())
log.Println("BuildDate:", version.BuildDate)
log.Println("Gitref:", version.Gitref)
log.Println("rttys version:", rttys_version())
br := newBridge()
go br.run()
+11
View File
@@ -0,0 +1,11 @@
package main
import "fmt"
const RTTYS_VERSION_MAJOR = 1
const RTTYS_VERSION_MINOR = 0
const RTTYS_VERSION_PATCH = 0
func rttys_version() string {
return fmt.Sprintf("%d.%d.%d", RTTYS_VERSION_MAJOR, RTTYS_VERSION_MINOR, RTTYS_VERSION_PATCH)
}
-20
View File
@@ -1,20 +0,0 @@
BUILDDATE=`date +%F`
GITREF=`git describe --always --tags --long`
# $(VERSION_GO) will be written to version.go
VERSION_GO="/* DO NOT EDIT THIS FILE. IT IS GENERATED BY 'make'*/\n\
package version\n\
var Gitref, BuildDate string\n"
# $(GIT_GO) will be written to gitref.go
GITREF_GO="/* DO NOT EDIT THIS FILE. IT IS GENERATED BY make */ \n\n\
package version\n\
func init() { Gitref = \"$(GITREF)\"\nBuildDate= \"$(BUILDDATE)\"\n} "
#
# setver updates version.go with VERSION
#
.PHONY:setver
setver:
@printf $(VERSION_GO) | gofmt > version.go
@printf $(GITREF_GO) | gofmt > git.go
-8
View File
@@ -1,8 +0,0 @@
/* DO NOT EDIT THIS FILE. IT IS GENERATED BY make */
package version
func init() {
Gitref = "v2018-03-18-4-gd3f89ec"
BuildDate = "2018-03-30"
}
-4
View File
@@ -1,4 +0,0 @@
/* DO NOT EDIT THIS FILE. IT IS GENERATED BY 'make'*/
package version
var Gitref, BuildDate string