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"
)
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()