~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/build_release.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-13 05:14:24 UTC
  • mfrom: (3936.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090113051424-nrk3zkfe09h46i9y
(mbp) merge 1.11 and advance to 1.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# When preparing a new release, make sure to set all of these to the latest
5
5
# values.
6
6
VERSIONS = {
7
 
    'bzr': '1.17',
8
 
    'qbzr': '0.12',
9
 
    'bzrtools': '1.17.0',
10
 
    'bzr-svn': '0.6.3',
11
 
    'bzr-rewrite': '0.5.2',
12
 
    'subvertpy': '0.6.8',
 
7
    'bzr': '1.11',
 
8
    'qbzr': '0.9.6',
 
9
    'bzrtools': '1.11.0',
 
10
    'bzr-svn': '0.4.16',
13
11
}
14
12
 
15
13
# This will be passed to 'make' to ensure we build with the right python
85
83
    bzr_dir = get_bzr_dir()
86
84
    if not os.path.isdir(bzr_dir):
87
85
        bzr_version = VERSIONS['bzr']
88
 
        bzr_url = 'lp:bzr/' + bzr_version
 
86
        bzr_url = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
89
87
        print "Getting bzr release %s from %s" % (bzr_version, bzr_url)
90
 
        call_or_fail([bzr(), 'co', bzr_url, bzr_dir])
 
88
        call_or_fail([bzr(), 'co', bzr_url])
91
89
    else:
92
90
        print "Ensuring %s is up-to-date" % (bzr_dir,)
93
91
        call_or_fail([bzr(), 'update', bzr_dir])
125
123
 
126
124
 
127
125
def _plugin_tag_name(plugin_name):
128
 
    if plugin_name in ('bzr-svn', 'bzr-rewrite', 'subvertpy'):
129
 
        return '%s-%s' % (plugin_name, VERSIONS[plugin_name])
 
126
    if plugin_name == 'bzr-svn':
 
127
        return 'bzr-svn-' + VERSIONS['bzr-svn']
130
128
    # bzrtools and qbzr use 'release-X.Y.Z'
131
129
    return 'release-' + VERSIONS[plugin_name]
132
130
 
134
132
def update_plugin(plugin_name):
135
133
    release_dir = get_plugin_release_dir(plugin_name)
136
134
    if not os.path.isdir(plugin_name):
137
 
        if plugin_name in ('bzr-svn', 'bzr-rewrite'):
 
135
        if plugin_name == 'bzr-svn':
138
136
            # bzr-svn uses a different repo format
139
137
            call_or_fail([bzr(), 'init-repo', '--rich-root-pack', plugin_name])
140
138
        else:
191
189
    update_tbzr()
192
190
    clean_target()
193
191
    create_target()
194
 
    install_plugin('subvertpy')
195
192
    install_plugin('bzrtools')
196
193
    install_plugin('qbzr')
197
194
    install_plugin('bzr-svn')
198
 
    install_plugin('bzr-rewrite')
199
195
 
200
196
    build_installer()
201
197