~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/build_release.py

  • Committer: John Arbash Meinel
  • Date: 2009-01-23 21:20:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3958.
  • Revision ID: john@arbash-meinel.com-20090123212055-qsa1szqtrrxtwgdl
Add report_activity to osutils.pumpfile

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 = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
89
 
        bzr_url = 'lp:bzr/' + bzr_version
 
86
        bzr_url = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
90
87
        print "Getting bzr release %s from %s" % (bzr_version, bzr_url)
91
 
        call_or_fail([bzr(), 'co', bzr_url, bzr_dir])
 
88
        call_or_fail([bzr(), 'co', bzr_url])
92
89
    else:
93
90
        print "Ensuring %s is up-to-date" % (bzr_dir,)
94
91
        call_or_fail([bzr(), 'update', bzr_dir])
126
123
 
127
124
 
128
125
def _plugin_tag_name(plugin_name):
129
 
    if plugin_name in ('bzr-svn', 'bzr-rewrite', 'subvertpy'):
130
 
        return '%s-%s' % (plugin_name, VERSIONS[plugin_name])
 
126
    if plugin_name == 'bzr-svn':
 
127
        return 'bzr-svn-' + VERSIONS['bzr-svn']
131
128
    # bzrtools and qbzr use 'release-X.Y.Z'
132
129
    return 'release-' + VERSIONS[plugin_name]
133
130
 
135
132
def update_plugin(plugin_name):
136
133
    release_dir = get_plugin_release_dir(plugin_name)
137
134
    if not os.path.isdir(plugin_name):
138
 
        if plugin_name in ('bzr-svn', 'bzr-rewrite'):
 
135
        if plugin_name == 'bzr-svn':
139
136
            # bzr-svn uses a different repo format
140
137
            call_or_fail([bzr(), 'init-repo', '--rich-root-pack', plugin_name])
141
138
        else:
192
189
    update_tbzr()
193
190
    clean_target()
194
191
    create_target()
195
 
    install_plugin('subvertpy')
196
192
    install_plugin('bzrtools')
197
193
    install_plugin('qbzr')
198
194
    install_plugin('bzr-svn')
199
 
    install_plugin('bzr-rewrite')
200
195
 
201
196
    build_installer()
202
197