Show More
@@ -211,10 +211,15 b' def hg_completer(self,event):' | |||||
211 |
|
211 | |||
212 |
|
212 | |||
213 |
|
213 | |||
|
214 | __bzr_commands = None | |||
|
215 | ||||
214 | def bzr_commands(): |
|
216 | def bzr_commands(): | |
|
217 | global __bzr_commands | |||
|
218 | if __bzr_commands is not None: | |||
|
219 | return __bzr_commands | |||
215 | out = os.popen('bzr help commands') |
|
220 | out = os.popen('bzr help commands') | |
216 |
|
|
221 | __bzr_commands = [l.split()[0] for l in out] | |
217 |
|
222 | return __bzr_commands | ||
218 |
|
223 | |||
219 | def bzr_completer(self,event): |
|
224 | def bzr_completer(self,event): | |
220 | """ Completer for bazaar commands """ |
|
225 | """ Completer for bazaar commands """ |
@@ -1,12 +1,7 b'' | |||||
1 | import os,sys,shutil |
|
1 | import os,sys,shutil | |
2 |
|
2 | |||
3 | repo = "http://ipython.scipy.org/svn/ipython/ipython/branches/0.7.3" |
|
3 | basever = '0.8.3' | |
4 | basename = 'ipython' |
|
|||
5 | workdir = './mkdist' |
|
|||
6 |
|
||||
7 | workdir = os.path.abspath(workdir) |
|
|||
8 |
|
4 | |||
9 | print "working at",workdir |
|
|||
10 | def oscmd(c): |
|
5 | def oscmd(c): | |
11 | print ">",c |
|
6 | print ">",c | |
12 | s = os.system(c) |
|
7 | s = os.system(c) | |
@@ -14,15 +9,24 b' def oscmd(c):' | |||||
14 | print "Error",s |
|
9 | print "Error",s | |
15 | sys.exit(s) |
|
10 | sys.exit(s) | |
16 |
|
11 | |||
|
12 | def verinfo(): | |||
|
13 | ||||
|
14 | out = os.popen('bzr version-info') | |||
|
15 | pairs = (l.split(':',1) for l in out) | |||
|
16 | d = dict(((k,v.strip()) for (k,v) in pairs)) | |||
|
17 | return d | |||
|
18 | ||||
|
19 | basename = 'ipython' | |||
|
20 | ||||
|
21 | #tarname = '%s.r%s.tgz' % (basename, ver) | |||
|
22 | oscmd('update_revnum.py') | |||
|
23 | ||||
|
24 | ver = verinfo() | |||
17 |
|
25 | |||
18 | assert not os.path.isdir(workdir) |
|
26 | if ver['branch-nick'] == 'ipython': | |
19 | os.mkdir(workdir) |
|
27 | tarname = 'ipython-%s.bzr.r%s.tgz' % (basever, ver['revno']) | |
20 | os.chdir(workdir) |
|
28 | else: | |
|
29 | tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (basever, ver['revno'], ver['branch-nick']) | |||
|
30 | ||||
|
31 | oscmd('bzr export ' + tarname) | |||
21 |
|
32 | |||
22 | oscmd('svn export %s %s' % (repo,basename)) |
|
|||
23 | ver = os.popen('svnversion ../..').read().strip() |
|
|||
24 | tarname = '%s.r%s.tgz' % (basename, ver) |
|
|||
25 | oscmd('tar czvf ../%s %s' % (tarname, basename)) |
|
|||
26 | print "Produced: ",os.path.abspath('../' + tarname) |
|
|||
27 | os.chdir('/') |
|
|||
28 | shutil.rmtree(workdir) |
|
General Comments 0
You need to be logged in to leave comments.
Login now