summaryrefslogtreecommitdiff
path: root/release
blob: 10fac732b28167e17dbe0ab5e3324a4f40370f14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/python

import os
import sys
import datetime
import shutil
import version

def command(c):
    os.system(c)
    print c

command("git checkout master")
    
release_version = version.rewrite_wscript(version.Version.to_release)
version.append_to_changelog(release_version)

command("git diff")
if (raw_input() != "y"):
    command("git reset --hard")
    print 'Aborted'
    sys.exit(1)

command("git commit -a -m \"Bump version\"")
command("git tag -m \"v%s\" v%s" % (release_version, release_version))
command("./waf clean")
command("./waf")
command("./waf configure")
command("./waf dist")
command("./builds/windows-32")
shutil.copy(os.path.join('build', 'windows', 'DVD-o-matic %s 32-bit Installer.exe' % release_version), '.')
command("./builds/windows-64")
shutil.copy(os.path.join('build', 'windows', 'DVD-o-matic %s 64-bit Installer.exe' % release_version), '.')

version.rewrite_wscript(version.Version.bump_and_to_pre)

command("git diff")
if (raw_input() != "y"):
    command("git reset --hard")
    print 'Aborted'
    sys.exit(1)

command("git commit -a -m \"Bump version\"")
command("cp DVD-o-matic*.exe dvdomatic-*.tar.bz2 /home/carl/public_html/carlh.net/software/dvdomatic")