1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

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

1
VERSION Normal file
View file

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

View file

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

View file

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