From 4ec2bc175d89d5372677fe32b2a798667ea03b14 Mon Sep 17 00:00:00 2001 From: Jindrich Luza Date: Thu, 22 Sep 2016 14:21:02 +0200 Subject: [PATCH] better ver-bump.py --- ver-bump.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ver-bump.py b/ver-bump.py index 997c09f..f369809 100755 --- a/ver-bump.py +++ b/ver-bump.py @@ -10,12 +10,19 @@ try: if sys.argv[1] == "major": version["libcomps_VERSION_MAJOR"] += 1 + version["libcomps_VERSION_MINOR"] = 1 + version["libcomps_VERSION_PATCH"] = 1 + version["libcomps_RELEASE"] = 1 elif sys.argv[1] == "minor": version["libcomps_VERSION_MINOR"] += 1 + version["libcomps_VERSION_PATCH"] = 1 + version["libcomps_RELEASE"] = 1 elif sys.argv[1] == "patch": version["libcomps_VERSION_PATCH"] += 1 + version["libcomps_RELEASE"] = 1 except IndexError: version["libcomps_VERSION_PATCH"] += 1 + version["libcomps_RELEASE"] = 1 f = open("version.json", "w") json.dump(version, f, indent=4)