Loading Makefile 0 → 100644 +4 −0 Original line number Diff line number Diff line VERSION = $(shell git describe) build: CGO_ENABLED=0 go build -ldflags="-X main.lyrebirdVersion=$(VERSION)" ./cmd/lyrebird README.md +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ the same dependency versions, while `go get -d` always downloads master. To build: `go build ./cmd/lyrebird` `make build` To install, copy `./lyrebird` to a permanent location (Eg: `/usr/local/bin`) Loading cmd/lyrebird/lyrebird.go +3 −7 Original line number Diff line number Diff line Loading @@ -50,11 +50,11 @@ import ( ) const ( lyrebirdVersion = "0.0.14" lyrebirdLogFile = "lyrebird.log" socksAddr = "127.0.0.1:0" ) var lyrebirdVersion = "devel" var stateDir string var termMon *termMonitor Loading Loading @@ -300,10 +300,6 @@ func copyLoop(a net.Conn, b net.Conn) error { return nil } func getVersion() string { return fmt.Sprintf("lyrebird-%s", lyrebirdVersion) } func main() { // Initialize the termination state monitor as soon as possible. termMon = newTermMonitor() Loading @@ -317,7 +313,7 @@ func main() { flag.Parse() if *showVer { fmt.Printf("%s\n", getVersion()) fmt.Printf("%s\n", lyrebirdVersion) os.Exit(0) } if err := log.SetLogLevel(*logLevelStr); err != nil { Loading @@ -342,7 +338,7 @@ func main() { os.Exit(-1) } log.Noticef("%s - launched", getVersion()) log.Noticef("%s - launched", lyrebirdVersion) // Do the managed pluggable transport protocol configuration. if isClient { Loading Loading
Makefile 0 → 100644 +4 −0 Original line number Diff line number Diff line VERSION = $(shell git describe) build: CGO_ENABLED=0 go build -ldflags="-X main.lyrebirdVersion=$(VERSION)" ./cmd/lyrebird
README.md +1 −1 Original line number Diff line number Diff line Loading @@ -42,7 +42,7 @@ the same dependency versions, while `go get -d` always downloads master. To build: `go build ./cmd/lyrebird` `make build` To install, copy `./lyrebird` to a permanent location (Eg: `/usr/local/bin`) Loading
cmd/lyrebird/lyrebird.go +3 −7 Original line number Diff line number Diff line Loading @@ -50,11 +50,11 @@ import ( ) const ( lyrebirdVersion = "0.0.14" lyrebirdLogFile = "lyrebird.log" socksAddr = "127.0.0.1:0" ) var lyrebirdVersion = "devel" var stateDir string var termMon *termMonitor Loading Loading @@ -300,10 +300,6 @@ func copyLoop(a net.Conn, b net.Conn) error { return nil } func getVersion() string { return fmt.Sprintf("lyrebird-%s", lyrebirdVersion) } func main() { // Initialize the termination state monitor as soon as possible. termMon = newTermMonitor() Loading @@ -317,7 +313,7 @@ func main() { flag.Parse() if *showVer { fmt.Printf("%s\n", getVersion()) fmt.Printf("%s\n", lyrebirdVersion) os.Exit(0) } if err := log.SetLogLevel(*logLevelStr); err != nil { Loading @@ -342,7 +338,7 @@ func main() { os.Exit(-1) } log.Noticef("%s - launched", getVersion()) log.Noticef("%s - launched", lyrebirdVersion) // Do the managed pluggable transport protocol configuration. if isClient { Loading