~openerp-community/openerp/skitzotek_trunk_symlinks

« back to all changes in this revision

Viewing changes to fabfile.py

  • Committer: Antony Lesuisse
  • Date: 2010-12-31 17:01:50 UTC
  • Revision ID: al@openerp.com-20101231170150-e6los3fh1gbw0zf0
Remove harcoded version from windows Makefile

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
# This should be updated every release
8
8
 
9
 
VERSION_MAJOR='6.0'
10
 
VERSION_FULL='%s.0-rc2'%VERSION_MAJOR
 
9
VERSION_MAJOR=6
 
10
VERSION_MINOR=0
 
11
VERSION_REVISION=0
 
12
VERSION_BUILD='rc2'
 
13
VERSION_FULL='%s.%s.%s'%(VERSION_MAJOR,VERSION_MINOR,VERSION_REVISION)
 
14
if VERSION_BUILD:
 
15
    VERSION_FULL='%s-%s'%(VERSION_FULL,VERSION_BUILD)
11
16
 
12
17
WINDOWS_IP='Stef@172.16.225.128'
13
18
 
66
71
    """
67
72
    Update the release files
68
73
    """
 
74
    open('windows-installer/Makefile.version','w').write("""
 
75
MAJOR_VERSION=%(VERSION_MAJOR)s
 
76
MINOR_VERSION=%(VERSION_MINOR)s
 
77
REVISION_VERSION=%(VERSION_REVISION)s
 
78
BUILD_VERSION=%(VERSION_BUILD)s
 
79
"""%globals())
69
80
    from mako.template import Template as MakoTemplate
70
81
    for project in PROJECTS:
71
82
        release_file = os.path.join(os.path.abspath(project[1]), project[2])
73
84
 
74
85
        template = MakoTemplate(filename=template_file)
75
86
        file_pointer = open(release_file, 'w')
76
 
        file_pointer.write( template.render(VERSION=VERSION_FULL, MAJOR_VERSION=VERSION_MAJOR))
 
87
        file_pointer.write( template.render(VERSION=VERSION_FULL, MAJOR_VERSION='%s.%s'%(VERSION_MAJOR,VERSION_MINOR)))
77
88
        file_pointer.close()
78
89
        print "release_file: %r" % release_file
79
90