]> git.donarmstrong.com Git - lilypond.git/blob - bin/release.py
release: 0.1.41
[lilypond.git] / bin / release.py
1 #!@PYTHON@
2
3 import sys
4 import os
5
6 lilypath =''
7 try:
8     lilypath = os.environ['LILYPOND_SOURCEDIR'] + '/'
9 except IndexError:
10     lilypath = os.environ['HOME'] + 'musix/current'
11 lilypath = lilypath + '/bin/'
12 sys.path.append(lilypath)
13
14 from lilypython import *
15
16 os.chdir(lilydirs.topdir)
17 os.system('make dist')
18 cur_ver = lilydirs.version_tuple()
19 print tarball(cur_ver)
20 os.rename('out/' + tarball(cur_ver), released_tarball(cur_ver))
21 os.chdir('../test')
22 os.system('pwd')
23 os.system('rm ../test/*gz')
24 os.link(released_tarball(cur_ver), tarball(cur_ver))
25
26
27 # not a module, but a script (JCN)
28 # makepatch.main()
29
30 # Module wherefore aren't thou Script
31 # A Rose by any other name would be as blonde. --HWN
32
33 os.system('python ' + lilydirs.topdir + '/bin/make-patch.py');
34
35 pn = 'patch-%s' % version_tuple_to_str(cur_ver)
36 os.system('gzip -9 ' + pn)
37 pn = pn + '.gz'
38 rel_pn = lilydirs.release_dir + '../patches/' + pn;
39
40 os.rename(pn, rel_pn);
41 os.link(rel_pn, pn);
42
43 os.system('tar cf updeet *gz')