From 5372db62e4dc2069de4945247f4b62c690ef22e8 Mon Sep 17 00:00:00 2001 From: ldericher <40151420+ldericher@users.noreply.github.com> Date: Tue, 22 Feb 2022 13:24:57 +0100 Subject: [PATCH] version bump script --- dist/bump-version.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/bump-version.sh b/dist/bump-version.sh index 0fdcb4e..6022e8c 100755 --- a/dist/bump-version.sh +++ b/dist/bump-version.sh @@ -3,11 +3,11 @@ this="$(readlink -f "${0}")" this_dir="$(dirname "${this}")" -# git_branch="$(git rev-parse --abbrev-ref HEAD)" -git_tag="$(git describe --abbrev=0)" -version_str="${git_tag##*/}" -version_str="0.2.0" +git_branch="$(git rev-parse --abbrev-ref HEAD)" +# git_tag="$(git describe --abbrev=0)" +version_str="${git_branch##*/}" +# version_str="0.2.0" -sed -ri "s/(version\s*:).*$/\1 '${version_str}'/" "${this_dir}/../example/kiwi.yml" +sed -ri "s/(version\s*:).*$/\1 ${version_str}/" "${this_dir}/../example/kiwi.yml" sed -ri "s/(version\s*=\s*).*$/\1\"${version_str}\"/" "${this_dir}/../pyproject.toml" sed -ri "s/(version.*=\s*).*$/\1\"${version_str}\"/" "${this_dir}/../kiwi_scp/config.py"