Skip to content

Commit dd26985

Browse files
committed
include version update script
1 parent 3ff14f8 commit dd26985

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/update_versions.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)