From ecbaf5ab97eff6781493f36e927e270d17c3f459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 6 May 2016 10:26:51 +0200 Subject: [PATCH] Added script to update version numbers in all relevant places. --- update_version.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 update_version.sh diff --git a/update_version.sh b/update_version.sh new file mode 100755 index 0000000..ef1d672 --- /dev/null +++ b/update_version.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# Updates the SDK version in the right places. +if [ -z "$1" ]; then + echo "Usage: $0 version" >&2 + exit 1 +fi + +VERSION="$1" + +sed "s/version='[0-9.]*'/version='$VERSION'/" -i setup.py +sed "s/__version__ = .*/__version__ = '$VERSION'/" -i pillarsdk/config.py + +git diff +echo +echo "================================================================" +echo "Version updated to $VERSION. Don't forget to commit!" +echo "================================================================"