From 4b5c397992a26c3f4d8bbd29b16d7a458411b8e2 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Wed, 27 Feb 2019 16:06:33 -0800 Subject: [PATCH] readme: update for 2.2 release version update: tweak script, ensure tag added after commit --- README.rst | 2 +- update-version.sh | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.rst b/README.rst index 230d914a..f604dfcf 100644 --- a/README.rst +++ b/README.rst @@ -1,4 +1,4 @@ -Webrecorder pywb 2.1 +Webrecorder pywb 2.2 ==================== .. image:: https://travis-ci.org/webrecorder/pywb.svg?branch=master diff --git a/update-version.sh b/update-version.sh index ec8f1087..8a9b7063 100755 --- a/update-version.sh +++ b/update-version.sh @@ -1,9 +1,16 @@ #!/bin/bash BASE=2.2 + NOW=$(date +%Y%m%d) -sed -i='' -E "s/(__version__ = ').*$/\1$BASE.$NOW'/" ./pywb/version.py -git tag v-$BASE.$NOW -git commit -m "version: update to $BASE.$NOW" ./pywb/version.py + +TAG="$BASE.$NOW" + +# Update +sed -i='' -E "s/(__version__ = ').*$/\1$TAG'/" ./pywb/version.py +git commit -m "version: update to $TAG" ./pywb/version.py git push -git push origin v-$BASE.$NOW + +# Tag +git tag v-$TAG +git push origin v-$TAG