~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to release.py

  • Committer: Aaron Bentley
  • Date: 2006-12-12 16:50:31 UTC
  • Revision ID: abentley@panoramicfeedback.com-20061212165031-51w8gjy1eps1vnw0
update NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    print "Mismatch between bzrtools version and setup.py version:\n %s %s"\
23
23
        % (bzrtools.__version__, match.group(1))
24
24
    sys.exit(1)
25
 
 
 
25
    
26
26
print "setup.py version: %s" % match.group(1)
27
27
newsmatch = minigrep('RELEASE: bzrtools %s' % (bzrtools.__version__), 'NEWS')
28
28
if newsmatch is None:
37
37
if os.path.exists(final_name):
38
38
    print "Final file exists already."
39
39
    sys.exit(1)
40
 
if call(['bzr', 'diff']) != 0:
41
 
    print "Please commit before releasing"
42
 
    sys.exit(1)
43
40
retcode = call(['bzr', 'export', '../bzrtools.tar.gz'])
44
41
if retcode != 0:
45
42
    sys.exit(1)
47
44
print 'Created %s' % final_name
48
45
call(['gpg', '--detach-sign', final_name])
49
46
print 'Uploading...'
50
 
call(['scp', final_name, final_name + '.sig',
 
47
call(['scp', final_name, final_name + '.sig', 
51
48
      'panoramicfeedback.com:opensource/'])
 
49
print "If you haven't committed, now would be a good time."