Merge branch 'master' into develop

This commit is contained in:
Enno Rehling 2015-09-12 15:39:58 +02:00
commit 6c8342d1c1
2 changed files with 22 additions and 1 deletions

View File

@ -21,7 +21,7 @@ make install
[ -d $DEST/bin ] || mkdir -p $DEST/bin
install -v $ROOT/process/cron/*.cron $DEST/bin/
programs="create-orders backup-eressea run-turn send-zip-report send-bz2-report"
programs="create-orders backup-eressea run-turn send-zip-report send-bz2-report compress.py compress.sh"
for prg in ${programs} ; do
install -v $ROOT/process/$prg $DEST/bin/
done

21
s/release Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env python
import os
import sys
template="""#define VERSION_MAJOR %s
#define VERSION_MINOR %s
#define VERSION_BUILD %s
"""
def new_version(ver):
sp = ver.split(".")
sp = (sp[0], sp[1], sp[2])
file = open("src/buildno.h", "w")
file.write(template % sp)
file.close()
os.system("git add src/buildno.h")
os.system("git commit -m 'release version %s'" % ver)
os.system("git tag -f version-%s" % ver)
new_version(sys.argv[1])