Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 1 | """Tag the sandbox for release, make source and doc tarballs. |
| 2 | |
| 3 | Requires Python 2.6 |
| 4 | |
| 5 | Example of invocation (use to test the script): |
Baptiste Lepilleur | e1b2645 | 2010-03-13 10:59:50 +0000 | [diff] [blame] | 6 | python makerelease.py --platform=msvc6,msvc71,msvc80,msvc90,mingw -ublep 0.6.0 0.7.0-dev |
Baptiste Lepilleur | cd6cb5d | 2010-03-13 07:59:07 +0000 | [diff] [blame] | 7 | |
| 8 | When testing this script: |
| 9 | python makerelease.py --force --retag --platform=msvc6,msvc71,msvc80,mingw -ublep test-0.5.0 test-0.6.0-dev |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 10 | |
| 11 | Example of invocation when doing a release: |
| 12 | python makerelease.py 0.5.0 0.6.0-dev |
| 13 | """ |
| 14 | import os.path |
| 15 | import subprocess |
| 16 | import sys |
| 17 | import doxybuild |
| 18 | import subprocess |
| 19 | import xml.etree.ElementTree as ElementTree |
Baptiste Lepilleur | 7c171ee | 2010-02-23 08:44:52 +0000 | [diff] [blame] | 20 | import shutil |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 21 | import urllib2 |
| 22 | import tempfile |
| 23 | import os |
| 24 | import time |
Baptiste Lepilleur | e94d2f4 | 2010-02-23 21:00:30 +0000 | [diff] [blame] | 25 | from devtools import antglob, fixeol, tarball |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 26 | |
| 27 | SVN_ROOT = 'https://jsoncpp.svn.sourceforge.net/svnroot/jsoncpp/' |
| 28 | SVN_TAG_ROOT = SVN_ROOT + 'tags/jsoncpp' |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 29 | SCONS_LOCAL_URL = 'http://sourceforge.net/projects/scons/files/scons-local/1.2.0/scons-local-1.2.0.tar.gz/download' |
| 30 | SOURCEFORGE_PROJECT = 'jsoncpp' |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 31 | |
| 32 | def set_version( version ): |
| 33 | with open('version','wb') as f: |
| 34 | f.write( version.strip() ) |
| 35 | |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 36 | def rmdir_if_exist( dir_path ): |
| 37 | if os.path.isdir( dir_path ): |
| 38 | shutil.rmtree( dir_path ) |
| 39 | |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 40 | class SVNError(Exception): |
| 41 | pass |
| 42 | |
| 43 | def svn_command( command, *args ): |
| 44 | cmd = ['svn', '--non-interactive', command] + list(args) |
| 45 | print 'Running:', ' '.join( cmd ) |
| 46 | process = subprocess.Popen( cmd, |
| 47 | stdout=subprocess.PIPE, |
| 48 | stderr=subprocess.STDOUT ) |
| 49 | stdout = process.communicate()[0] |
| 50 | if process.returncode: |
| 51 | error = SVNError( 'SVN command failed:\n' + stdout ) |
| 52 | error.returncode = process.returncode |
| 53 | raise error |
| 54 | return stdout |
| 55 | |
| 56 | def check_no_pending_commit(): |
| 57 | """Checks that there is no pending commit in the sandbox.""" |
| 58 | stdout = svn_command( 'status', '--xml' ) |
| 59 | etree = ElementTree.fromstring( stdout ) |
| 60 | msg = [] |
| 61 | for entry in etree.getiterator( 'entry' ): |
| 62 | path = entry.get('path') |
| 63 | status = entry.find('wc-status').get('item') |
Baptiste Lepilleur | e6a7741 | 2010-03-11 21:02:26 +0000 | [diff] [blame] | 64 | if status != 'unversioned' and path != 'version': |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 65 | msg.append( 'File "%s" has pending change (status="%s")' % (path, status) ) |
| 66 | if msg: |
| 67 | msg.insert(0, 'Pending change to commit found in sandbox. Commit them first!' ) |
| 68 | return '\n'.join( msg ) |
| 69 | |
| 70 | def svn_join_url( base_url, suffix ): |
| 71 | if not base_url.endswith('/'): |
| 72 | base_url += '/' |
| 73 | if suffix.startswith('/'): |
| 74 | suffix = suffix[1:] |
| 75 | return base_url + suffix |
| 76 | |
| 77 | def svn_check_if_tag_exist( tag_url ): |
| 78 | """Checks if a tag exist. |
| 79 | Returns: True if the tag exist, False otherwise. |
| 80 | """ |
| 81 | try: |
| 82 | list_stdout = svn_command( 'list', tag_url ) |
| 83 | except SVNError, e: |
| 84 | if e.returncode != 1 or not str(e).find('tag_url'): |
| 85 | raise e |
| 86 | # otherwise ignore error, meaning tag does not exist |
| 87 | return False |
| 88 | return True |
| 89 | |
Baptiste Lepilleur | e6a7741 | 2010-03-11 21:02:26 +0000 | [diff] [blame] | 90 | def svn_commit( message ): |
| 91 | """Commit the sandbox, providing the specified comment. |
| 92 | """ |
| 93 | svn_command( 'ci', '-m', message ) |
| 94 | |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 95 | def svn_tag_sandbox( tag_url, message ): |
| 96 | """Makes a tag based on the sandbox revisions. |
| 97 | """ |
| 98 | svn_command( 'copy', '-m', message, '.', tag_url ) |
| 99 | |
| 100 | def svn_remove_tag( tag_url, message ): |
| 101 | """Removes an existing tag. |
| 102 | """ |
| 103 | svn_command( 'delete', '-m', message, tag_url ) |
| 104 | |
Baptiste Lepilleur | 7c171ee | 2010-02-23 08:44:52 +0000 | [diff] [blame] | 105 | def svn_export( tag_url, export_dir ): |
| 106 | """Exports the tag_url revision to export_dir. |
| 107 | Target directory, including its parent is created if it does not exist. |
| 108 | If the directory export_dir exist, it is deleted before export proceed. |
| 109 | """ |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 110 | rmdir_if_exist( export_dir ) |
Baptiste Lepilleur | 7c171ee | 2010-02-23 08:44:52 +0000 | [diff] [blame] | 111 | svn_command( 'export', tag_url, export_dir ) |
| 112 | |
Baptiste Lepilleur | e94d2f4 | 2010-02-23 21:00:30 +0000 | [diff] [blame] | 113 | def fix_sources_eol( dist_dir ): |
| 114 | """Set file EOL for tarball distribution. |
| 115 | """ |
| 116 | print 'Preparing exported source file EOL for distribution...' |
| 117 | prune_dirs = antglob.prune_dirs + 'scons-local* ./build* ./libs ./dist' |
| 118 | win_sources = antglob.glob( dist_dir, |
| 119 | includes = '**/*.sln **/*.vcproj', |
| 120 | prune_dirs = prune_dirs ) |
| 121 | unix_sources = antglob.glob( dist_dir, |
| 122 | includes = '''**/*.h **/*.cpp **/*.inl **/*.txt **/*.dox **/*.py **/*.html **/*.in |
| 123 | sconscript *.json *.expected AUTHORS LICENSE''', |
| 124 | excludes = antglob.default_excludes + 'scons.py sconsign.py scons-*', |
| 125 | prune_dirs = prune_dirs ) |
| 126 | for path in win_sources: |
| 127 | fixeol.fix_source_eol( path, is_dry_run = False, verbose = True, eol = '\r\n' ) |
| 128 | for path in unix_sources: |
| 129 | fixeol.fix_source_eol( path, is_dry_run = False, verbose = True, eol = '\n' ) |
| 130 | |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 131 | def download( url, target_path ): |
| 132 | """Download file represented by url to target_path. |
| 133 | """ |
| 134 | f = urllib2.urlopen( url ) |
| 135 | try: |
| 136 | data = f.read() |
| 137 | finally: |
| 138 | f.close() |
| 139 | fout = open( target_path, 'wb' ) |
| 140 | try: |
| 141 | fout.write( data ) |
| 142 | finally: |
| 143 | fout.close() |
| 144 | |
| 145 | def check_compile( distcheck_top_dir, platform ): |
| 146 | cmd = [sys.executable, 'scons.py', 'platform=%s' % platform, 'check'] |
| 147 | print 'Running:', ' '.join( cmd ) |
| 148 | log_path = os.path.join( distcheck_top_dir, 'build-%s.log' % platform ) |
| 149 | flog = open( log_path, 'wb' ) |
| 150 | try: |
| 151 | process = subprocess.Popen( cmd, |
| 152 | stdout=flog, |
| 153 | stderr=subprocess.STDOUT, |
| 154 | cwd=distcheck_top_dir ) |
| 155 | stdout = process.communicate()[0] |
| 156 | status = (process.returncode == 0) |
| 157 | finally: |
| 158 | flog.close() |
| 159 | return (status, log_path) |
| 160 | |
| 161 | def write_tempfile( content, **kwargs ): |
| 162 | fd, path = tempfile.mkstemp( **kwargs ) |
| 163 | f = os.fdopen( fd, 'wt' ) |
| 164 | try: |
| 165 | f.write( content ) |
| 166 | finally: |
| 167 | f.close() |
| 168 | return path |
| 169 | |
| 170 | class SFTPError(Exception): |
| 171 | pass |
| 172 | |
| 173 | def run_sftp_batch( userhost, sftp, batch, retry=0 ): |
| 174 | path = write_tempfile( batch, suffix='.sftp', text=True ) |
| 175 | # psftp -agent -C blep,jsoncpp@web.sourceforge.net -batch -b batch.sftp -bc |
| 176 | cmd = [sftp, '-agent', '-C', '-batch', '-b', path, '-bc', userhost] |
| 177 | error = None |
| 178 | for retry_index in xrange(0, max(1,retry)): |
| 179 | heading = retry_index == 0 and 'Running:' or 'Retrying:' |
| 180 | print heading, ' '.join( cmd ) |
| 181 | process = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT ) |
| 182 | stdout = process.communicate()[0] |
| 183 | if process.returncode != 0: |
| 184 | error = SFTPError( 'SFTP batch failed:\n' + stdout ) |
| 185 | else: |
| 186 | break |
| 187 | if error: |
| 188 | raise error |
| 189 | return stdout |
| 190 | |
| 191 | def sourceforge_web_synchro( sourceforge_project, doc_dir, |
| 192 | user=None, sftp='sftp' ): |
| 193 | """Notes: does not synchronize sub-directory of doc-dir. |
| 194 | """ |
| 195 | userhost = '%s,%s@web.sourceforge.net' % (user, sourceforge_project) |
| 196 | stdout = run_sftp_batch( userhost, sftp, """ |
| 197 | cd htdocs |
| 198 | dir |
| 199 | exit |
| 200 | """ ) |
| 201 | existing_paths = set() |
| 202 | collect = 0 |
| 203 | for line in stdout.split('\n'): |
| 204 | line = line.strip() |
| 205 | if not collect and line.endswith('> dir'): |
| 206 | collect = True |
| 207 | elif collect and line.endswith('> exit'): |
| 208 | break |
| 209 | elif collect == 1: |
| 210 | collect = 2 |
| 211 | elif collect == 2: |
| 212 | path = line.strip().split()[-1:] |
| 213 | if path and path[0] not in ('.', '..'): |
| 214 | existing_paths.add( path[0] ) |
| 215 | upload_paths = set( [os.path.basename(p) for p in antglob.glob( doc_dir )] ) |
| 216 | paths_to_remove = existing_paths - upload_paths |
| 217 | if paths_to_remove: |
| 218 | print 'Removing the following file from web:' |
| 219 | print '\n'.join( paths_to_remove ) |
| 220 | stdout = run_sftp_batch( userhost, sftp, """cd htdocs |
| 221 | rm %s |
| 222 | exit""" % ' '.join(paths_to_remove) ) |
| 223 | print 'Uploading %d files:' % len(upload_paths) |
| 224 | batch_size = 10 |
| 225 | upload_paths = list(upload_paths) |
| 226 | start_time = time.time() |
| 227 | for index in xrange(0,len(upload_paths),batch_size): |
| 228 | paths = upload_paths[index:index+batch_size] |
| 229 | file_per_sec = (time.time() - start_time) / (index+1) |
| 230 | remaining_files = len(upload_paths) - index |
| 231 | remaining_sec = file_per_sec * remaining_files |
| 232 | print '%d/%d, ETA=%.1fs' % (index+1, len(upload_paths), remaining_sec) |
| 233 | run_sftp_batch( userhost, sftp, """cd htdocs |
| 234 | lcd %s |
| 235 | mput %s |
| 236 | exit""" % (doc_dir, ' '.join(paths) ), retry=3 ) |
| 237 | |
Baptiste Lepilleur | d89d796 | 2010-02-25 08:30:09 +0000 | [diff] [blame] | 238 | def sourceforge_release_tarball( sourceforge_project, paths, user=None, sftp='sftp' ): |
| 239 | userhost = '%s,%s@frs.sourceforge.net' % (user, sourceforge_project) |
| 240 | run_sftp_batch( userhost, sftp, """ |
| 241 | mput %s |
| 242 | exit |
| 243 | """ % (' '.join(paths),) ) |
| 244 | |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 245 | |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 246 | def main(): |
| 247 | usage = """%prog release_version next_dev_version |
| 248 | Update 'version' file to release_version and commit. |
| 249 | Generates the document tarball. |
| 250 | Tags the sandbox revision with release_version. |
| 251 | Update 'version' file to next_dev_version and commit. |
| 252 | |
| 253 | Performs an svn export of tag release version, and build a source tarball. |
| 254 | |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 255 | Must be started in the project top directory. |
| 256 | |
| 257 | Warning: --force should only be used when developping/testing the release script. |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 258 | """ |
| 259 | from optparse import OptionParser |
| 260 | parser = OptionParser(usage=usage) |
| 261 | parser.allow_interspersed_args = False |
| 262 | parser.add_option('--dot', dest="dot_path", action='store', default=doxybuild.find_program('dot'), |
| 263 | help="""Path to GraphViz dot tool. Must be full qualified path. [Default: %default]""") |
| 264 | parser.add_option('--doxygen', dest="doxygen_path", action='store', default=doxybuild.find_program('doxygen'), |
| 265 | help="""Path to Doxygen tool. [Default: %default]""") |
| 266 | parser.add_option('--force', dest="ignore_pending_commit", action='store_true', default=False, |
| 267 | help="""Ignore pending commit. [Default: %default]""") |
| 268 | parser.add_option('--retag', dest="retag_release", action='store_true', default=False, |
| 269 | help="""Overwrite release existing tag if it exist. [Default: %default]""") |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 270 | parser.add_option('-p', '--platforms', dest="platforms", action='store', default='', |
| 271 | help="""Comma separated list of platform passed to scons for build check.""") |
Baptiste Lepilleur | d89d796 | 2010-02-25 08:30:09 +0000 | [diff] [blame] | 272 | parser.add_option('--no-test', dest="no_test", action='store_true', default=False, |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 273 | help="""Skips build check.""") |
Baptiste Lepilleur | d89d796 | 2010-02-25 08:30:09 +0000 | [diff] [blame] | 274 | parser.add_option('--no-web', dest="no_web", action='store_true', default=False, |
| 275 | help="""Do not update web site.""") |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 276 | parser.add_option('-u', '--upload-user', dest="user", action='store', |
| 277 | help="""Sourceforge user for SFTP documentation upload.""") |
| 278 | parser.add_option('--sftp', dest='sftp', action='store', default=doxybuild.find_program('psftp', 'sftp'), |
| 279 | help="""Path of the SFTP compatible binary used to upload the documentation.""") |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 280 | parser.enable_interspersed_args() |
| 281 | options, args = parser.parse_args() |
| 282 | |
Baptiste Lepilleur | e6a7741 | 2010-03-11 21:02:26 +0000 | [diff] [blame] | 283 | if len(args) != 2: |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 284 | parser.error( 'release_version missing on command-line.' ) |
| 285 | release_version = args[0] |
Baptiste Lepilleur | e6a7741 | 2010-03-11 21:02:26 +0000 | [diff] [blame] | 286 | next_version = args[1] |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 287 | |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 288 | if not options.platforms and not options.no_test: |
| 289 | parser.error( 'You must specify either --platform or --no-test option.' ) |
| 290 | |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 291 | if options.ignore_pending_commit: |
| 292 | msg = '' |
| 293 | else: |
| 294 | msg = check_no_pending_commit() |
| 295 | if not msg: |
| 296 | print 'Setting version to', release_version |
| 297 | set_version( release_version ) |
Baptiste Lepilleur | e6a7741 | 2010-03-11 21:02:26 +0000 | [diff] [blame] | 298 | svn_commit( 'Release ' + release_version ) |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 299 | tag_url = svn_join_url( SVN_TAG_ROOT, release_version ) |
Baptiste Lepilleur | e94d2f4 | 2010-02-23 21:00:30 +0000 | [diff] [blame] | 300 | if svn_check_if_tag_exist( tag_url ): |
| 301 | if options.retag_release: |
| 302 | svn_remove_tag( tag_url, 'Overwriting previous tag' ) |
| 303 | else: |
| 304 | print 'Aborting, tag %s already exist. Use --retag to overwrite it!' % tag_url |
| 305 | sys.exit( 1 ) |
| 306 | svn_tag_sandbox( tag_url, 'Release ' + release_version ) |
| 307 | |
| 308 | print 'Generated doxygen document...' |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 309 | ## doc_dirname = r'jsoncpp-api-html-0.5.0' |
| 310 | ## doc_tarball_path = r'e:\prg\vc\Lib\jsoncpp-trunk\dist\jsoncpp-api-html-0.5.0.tar.gz' |
| 311 | doc_tarball_path, doc_dirname = doxybuild.build_doc( options, make_release=True ) |
| 312 | doc_distcheck_dir = 'dist/doccheck' |
| 313 | tarball.decompress( doc_tarball_path, doc_distcheck_dir ) |
| 314 | doc_distcheck_top_dir = os.path.join( doc_distcheck_dir, doc_dirname ) |
Baptiste Lepilleur | e94d2f4 | 2010-02-23 21:00:30 +0000 | [diff] [blame] | 315 | |
| 316 | export_dir = 'dist/export' |
| 317 | svn_export( tag_url, export_dir ) |
| 318 | fix_sources_eol( export_dir ) |
| 319 | |
| 320 | source_dir = 'jsoncpp-src-' + release_version |
| 321 | source_tarball_path = 'dist/%s.tar.gz' % source_dir |
| 322 | print 'Generating source tarball to', source_tarball_path |
| 323 | tarball.make_tarball( source_tarball_path, [export_dir], export_dir, prefix_dir=source_dir ) |
Baptiste Lepilleur | 35bdc07 | 2010-02-24 08:05:41 +0000 | [diff] [blame] | 324 | |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 325 | # Decompress source tarball, download and install scons-local |
Baptiste Lepilleur | 35bdc07 | 2010-02-24 08:05:41 +0000 | [diff] [blame] | 326 | distcheck_dir = 'dist/distcheck' |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 327 | distcheck_top_dir = distcheck_dir + '/' + source_dir |
Baptiste Lepilleur | 35bdc07 | 2010-02-24 08:05:41 +0000 | [diff] [blame] | 328 | print 'Decompressing source tarball to', distcheck_dir |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 329 | rmdir_if_exist( distcheck_dir ) |
Baptiste Lepilleur | 35bdc07 | 2010-02-24 08:05:41 +0000 | [diff] [blame] | 330 | tarball.decompress( source_tarball_path, distcheck_dir ) |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 331 | scons_local_path = 'dist/scons-local.tar.gz' |
| 332 | print 'Downloading scons-local to', scons_local_path |
| 333 | download( SCONS_LOCAL_URL, scons_local_path ) |
| 334 | print 'Decompressing scons-local to', distcheck_top_dir |
| 335 | tarball.decompress( scons_local_path, distcheck_top_dir ) |
| 336 | |
| 337 | # Run compilation |
| 338 | print 'Compiling decompressed tarball' |
| 339 | all_build_status = True |
| 340 | for platform in options.platforms.split(','): |
| 341 | print 'Testing platform:', platform |
| 342 | build_status, log_path = check_compile( distcheck_top_dir, platform ) |
| 343 | print 'see build log:', log_path |
| 344 | print build_status and '=> ok' or '=> FAILED' |
| 345 | all_build_status = all_build_status and build_status |
| 346 | if not build_status: |
| 347 | print 'Testing failed on at least one platform, aborting...' |
| 348 | svn_remove_tag( tag_url, 'Removing tag due to failed testing' ) |
| 349 | sys.exit(1) |
| 350 | if options.user: |
Baptiste Lepilleur | d89d796 | 2010-02-25 08:30:09 +0000 | [diff] [blame] | 351 | if not options.no_web: |
| 352 | print 'Uploading documentation using user', options.user |
| 353 | sourceforge_web_synchro( SOURCEFORGE_PROJECT, doc_distcheck_top_dir, user=options.user, sftp=options.sftp ) |
| 354 | print 'Completed documentation upload' |
| 355 | print 'Uploading source and documentation tarballs for release using user', options.user |
| 356 | sourceforge_release_tarball( SOURCEFORGE_PROJECT, |
| 357 | [source_tarball_path, doc_tarball_path], |
| 358 | user=options.user, sftp=options.sftp ) |
| 359 | print 'Source and doc release tarballs uploaded' |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 360 | else: |
Baptiste Lepilleur | d89d796 | 2010-02-25 08:30:09 +0000 | [diff] [blame] | 361 | print 'No upload user specified. Web site and download tarbal were not uploaded.' |
Baptiste Lepilleur | 64ba062 | 2010-02-24 23:08:47 +0000 | [diff] [blame] | 362 | print 'Tarball can be found at:', doc_tarball_path |
Baptiste Lepilleur | e6a7741 | 2010-03-11 21:02:26 +0000 | [diff] [blame] | 363 | |
| 364 | # Set next version number and commit |
| 365 | set_version( next_version ) |
| 366 | svn_commit( 'Released ' + release_version ) |
Baptiste Lepilleur | 1f4847c | 2010-02-23 07:57:38 +0000 | [diff] [blame] | 367 | else: |
| 368 | sys.stderr.write( msg + '\n' ) |
| 369 | |
| 370 | if __name__ == '__main__': |
| 371 | main() |