diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-28 01:32:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-28 01:32:37 +0000 |
| commit | f8de809fd82f29a1bb4944eb5c53c4f2a8bc14ad (patch) | |
| tree | abaa5ed77b755c563fe20cfce4a7292165b02322 | |
| parent | 8b01c1bce806abeac7488a256326287be3aae5fb (diff) | |
Add script to build pre-releases.
| -rwxr-xr-x | pre | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +#!/usr/bin/python + +import os +import shutil + +def command(c): + os.system(c) + print c + +def current_version(): + f = open('wscript', 'rw') + while 1: + l = f.readline() + if l == '': + break + + s = l.split() + if len(s) == 3 and s[0] == "VERSION": + return s[2][1:-1] + + assert(false) + +v = current_version() + +command("./builds/windows-32") +shutil.copy(os.path.join('build', 'windows', 'DVD-o-matic %s 32-bit Installer.exe' % v), '.') +command("./builds/windows-64") +shutil.copy(os.path.join('build', 'windows', 'DVD-o-matic %s 64-bit Installer.exe' % v), '.') +command("./waf dist") |
