Removed local_interfaces configuration directory. Instead, the user_overrides files...
[zeroinstall.git] / makedist
blobd02ad0e51db12b5b3d5311ecc1f182ea76d9ef97
1 #!/usr/bin/env python
2 import zeroinstall, sys, os, shutil
4 os.system('svn status')
6 name = 'injector-' + zeroinstall.version
7 package_name = 'zeroinstall-' + name
8 a = raw_input("Release " + name + "? [y/N]")
9 if not a or a not in 'Yy':
10 sys.exit(0)
12 if os.system('cd tests && ./testall.py'):
13 print "ERROR: Unit test failure. Stop"
14 sys.exit(1)
16 if os.system('svn ls file:///home/svn/releases/' + name + ' >/dev/null') == 0:
17 print "WARNING: releases/" + name + " already exists"
18 a = raw_input("Overwrite " + name + "? [y/N]")
19 if not a or a not in 'Yy':
20 sys.exit(0)
21 os.system('svn rm file:///home/svn/releases/' + name + ' -m overwrite')
23 if os.system('svn cp -m "Released ' + name + '" ' +
24 'file:///home/svn/injector/injector '
25 'file:///home/svn/releases/' + name):
26 print "Failed to make release"
27 sys.exit(1)
29 if os.path.isdir(package_name):
30 shutil.rmtree(package_name)
31 os.system('svn export file:///home/svn/releases/' + name + ' ' + package_name)
32 os.system('svn up')
33 os.chdir(name)
34 os.system('python setup.py sdist')
35 os.system('dpkg-buildpackage -rfakeroot')