Added script to update version numbers in all relevant places.

This commit is contained in:
2016-05-06 10:26:51 +02:00
parent 3cad957a4d
commit ecbaf5ab97

18
update_version.sh Executable file
View File

@@ -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 "================================================================"