mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-21 20:33:00 +00:00
version bump script
This commit is contained in:
parent
a54d66b9e7
commit
5372db62e4
1 changed files with 5 additions and 5 deletions
10
dist/bump-version.sh
vendored
10
dist/bump-version.sh
vendored
|
@ -3,11 +3,11 @@
|
||||||
this="$(readlink -f "${0}")"
|
this="$(readlink -f "${0}")"
|
||||||
this_dir="$(dirname "${this}")"
|
this_dir="$(dirname "${this}")"
|
||||||
|
|
||||||
# git_branch="$(git rev-parse --abbrev-ref HEAD)"
|
git_branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||||
git_tag="$(git describe --abbrev=0)"
|
# git_tag="$(git describe --abbrev=0)"
|
||||||
version_str="${git_tag##*/}"
|
version_str="${git_branch##*/}"
|
||||||
version_str="0.2.0"
|
# 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*=\s*).*$/\1\"${version_str}\"/" "${this_dir}/../pyproject.toml"
|
||||||
sed -ri "s/(version.*=\s*).*$/\1\"${version_str}\"/" "${this_dir}/../kiwi_scp/config.py"
|
sed -ri "s/(version.*=\s*).*$/\1\"${version_str}\"/" "${this_dir}/../kiwi_scp/config.py"
|
||||||
|
|
Loading…
Reference in a new issue