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"