Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthurSonzogni <sonzogniarthur@gmail.com>2020-06-28 14:11:08 +0300
committerArthurSonzogni <sonzogniarthur@gmail.com>2020-06-28 14:35:06 +0300
commitd35aa0f1f570515d70d50325f232c11753892060 (patch)
tree1f6b69d40b62f9224105c19212037f2dcc9dbd51
parent7873076f9e272fba804368d54c3e7903c6226676 (diff)
Automatically update the README.
This is related to: https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent/pull/1
-rwxr-xr-xupdate.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/update.py b/update.py
index 443d900..e80a1e2 100755
--- a/update.py
+++ b/update.py
@@ -53,6 +53,12 @@ for tag, url, body in release_url_map[::-1]:
subprocess.call(['git', 'add', './include/nlohmann/json.hpp'])
if has_json_fwd:
subprocess.call(['git', 'add', './include/nlohmann/json_fwd.hpp'])
+
+ # Update the README.md:
+ subprocess.call([ 'sed', '-i', '-e', 's/GIT_TAG .*)/GIT_TAG '+ tag + ')/g', './README.md'])
+ subprocess.call(['git', 'add', './README.md'])
+
+ # Commit:
subprocess.call(['git', 'commit', '-m', 'Upstream release ' + tag])
subprocess.call(['git', 'tag', '-a', tag, '-m', body])