Add tag and commit after version is bumped.

This commit is contained in:
Cheng Zhao 2013-11-07 15:39:41 +08:00
parent 48a0ac9a96
commit 690ab7d4ae

View file

@ -24,6 +24,7 @@ def main():
update_win_rc(version, versions)
update_version_h(versions)
update_info_plist(version)
tag_version(version)
def parse_version(version):
@ -105,5 +106,11 @@ def update_info_plist(version):
return
def tag_version(version):
subprocess.check_call(['git', 'commit', '-a', '-m',
'Bump v{0}.'.format(version)])
subprocess.check_call(['git', 'tag', 'v{0}'.format(version)])
if __name__ == '__main__':
sys.exit(main())