We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ff14f8 commit dd26985Copy full SHA for dd26985
scripts/update_versions.sh
@@ -0,0 +1,10 @@
1
+SCRIPT_ROOT=$(dirname "${BASH_SOURCE}")
2
+SOURCE_ROOT="${SCRIPT_ROOT}/../"
3
+PACKAGE_NAME=$(python "${SCRIPT_ROOT}/constants.py" PACKAGE_NAME)
4
+CLIENT_ROOT="${SOURCE_ROOT}/${PACKAGE_NAME}"
5
+CLIENT_VERSION=$(python "${SCRIPT_ROOT}/constants.py" CLIENT_VERSION)
6
+set -x
7
+sed -i'' "s/^CLIENT_VERSION = .*/CLIENT_VERSION = \\\"${CLIENT_VERSION}\\\"/" "${SCRIPT_ROOT}/../setup.py"
8
+sed -i'' "s/^__version__ = .*/__version__ = \\\"${CLIENT_VERSION}\\\"/" "${CLIENT_ROOT}/__init__.py"
9
+sed -i'' "s/^Version:.*/Version: ${CLIENT_VERSION}/" "${SCRIPT_ROOT}/../python-openshift.spec"
10
+sed -i'' "s/^- Package version: .*/- Package version: ${CLIENT_VERSION}/" "${CLIENT_ROOT}/README.md"
0 commit comments