From: Cheng Zhao Date: Thu, 7 Nov 2013 07:39:41 +0000 (+0800) Subject: Add tag and commit after version is bumped. X-Git-Tag: v0.6.9~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=690ab7d4ae76779ddd4a96160ba25518cf8c5e0a;p=electron.git Add tag and commit after version is bumped. --- diff --git a/script/bump-version.py b/script/bump-version.py index 5e7ab225..be200e7b 100644 --- a/script/bump-version.py +++ b/script/bump-version.py @@ -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())