Move VERSION to a dedicated file to facilitate automated builds and releases

Upstream-commit: 9087ef9a770789e6987cd1ca4396d6b20a446724
Component: engine
This commit is contained in:
Solomon Hykes
2013-08-06 20:49:55 -07:00
committed by Jérôme Petazzoni
parent 4ccbc259fe
commit 0bebe41d5e
3 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1 @@
0.5.1-dev

View File

@ -27,10 +27,9 @@ import (
"unicode"
)
const VERSION = "0.5.3-dev"
var (
GITCOMMIT string
VERSION string
)
func (cli *DockerCli) getMethod(name string) (reflect.Method, bool) {

View File

@ -16,6 +16,7 @@ import (
var (
GITCOMMIT string
VERSION string
)
func main() {
@ -52,6 +53,7 @@ func main() {
os.Setenv("DEBUG", "1")
}
docker.GITCOMMIT = GITCOMMIT
docker.VERSION = VERSION
if *flDaemon {
if flag.NArg() != 0 {
flag.Usage()