~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/build_release.py

  • Committer: Andrew Bennetts
  • Date: 2009-04-02 05:53:12 UTC
  • mto: This revision was merged to the branch mainline in revision 4242.
  • Revision ID: andrew.bennetts@canonical.com-20090402055312-h7mvgumvm7e620mj
Fix nits in spelling and naming.

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.12',
 
8
    'qbzr': '0.9.8',
 
9
    'bzrtools': '1.12.0',
 
10
    'bzr-svn': '0.5.2',
 
11
    'subvertpy': '0.6.4',
13
12
}
14
13
 
15
14
# This will be passed to 'make' to ensure we build with the right python
85
84
    bzr_dir = get_bzr_dir()
86
85
    if not os.path.isdir(bzr_dir):
87
86
        bzr_version = VERSIONS['bzr']
88
 
        bzr_url = 'lp:bzr/' + bzr_version
 
87
        bzr_url = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
89
88
        print "Getting bzr release %s from %s" % (bzr_version, bzr_url)
90
 
        call_or_fail([bzr(), 'co', bzr_url, bzr_dir])
 
89
        call_or_fail([bzr(), 'co', bzr_url])
91
90
    else:
92
91
        print "Ensuring %s is up-to-date" % (bzr_dir,)
93
92
        call_or_fail([bzr(), 'update', bzr_dir])
125
124
 
126
125
 
127
126
def _plugin_tag_name(plugin_name):
128
 
    if plugin_name in ('bzr-svn', 'bzr-rewrite', 'subvertpy'):
 
127
    if plugin_name in ('bzr-svn', 'subvertpy'):
129
128
        return '%s-%s' % (plugin_name, VERSIONS[plugin_name])
130
129
    # bzrtools and qbzr use 'release-X.Y.Z'
131
130
    return 'release-' + VERSIONS[plugin_name]
134
133
def update_plugin(plugin_name):
135
134
    release_dir = get_plugin_release_dir(plugin_name)
136
135
    if not os.path.isdir(plugin_name):
137
 
        if plugin_name in ('bzr-svn', 'bzr-rewrite'):
 
136
        if plugin_name == 'bzr-svn':
138
137
            # bzr-svn uses a different repo format
139
138
            call_or_fail([bzr(), 'init-repo', '--rich-root-pack', plugin_name])
140
139
        else:
195
194
    install_plugin('bzrtools')
196
195
    install_plugin('qbzr')
197
196
    install_plugin('bzr-svn')
198
 
    install_plugin('bzr-rewrite')
199
197
 
200
198
    build_installer()
201
199