2 import gui
, sys
, os
, shutil
4 os
.system('svn status')
6 name
= 'injector-gui-' + gui
.version
7 a
= raw_input("Release " + name
+ "? [y/N]")
8 if not a
or a
not in 'Yy':
11 if os
.system('svn ls file:///home/svn/releases/' + name
+ ' >/dev/null') == 0:
12 print "WARNING: releases/" + name
+ " already exists"
13 a
= raw_input("Overwrite " + name
+ "? [y/N]")
14 if not a
or a
not in 'Yy':
16 os
.system('svn rm file:///home/svn/releases/' + name
+ ' -m overwrite')
18 if os
.system('svn cp -m "Released ' + name
+ '" ' +
19 'file:///home/svn/injector/injector-gui '
20 'file:///home/svn/releases/' + name
):
21 print "Failed to make release"
24 if os
.path
.isdir(name
):
26 os
.system('svn export file:///home/svn/releases/' + name
+ ' ' + name
)