]>
git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/thrift/lib/rs/release.sh
7 if ! [[ $# -eq 1 && $1 =~ ^
[0-9](\.
[0-9][0-9]*){2}$
]]; then
8 (>&2 echo "Usage: ./publish-crate.sh [THRIFT_RELEASE_VERSION] ")
9 (>&2 echo " THRIFT_RELEASE_VERSION is in semantic versioning format, i.e. #.##.##")
13 THRIFT_RELEASE_VERSION
=${1:-}
15 echo "Updating Cargo.toml to ${THRIFT_RELEASE_VERSION}"
16 sed -i.old
-e "s/^version = .*$/version = \"${THRIFT_RELEASE_VERSION}\"/g" Cargo.toml
19 echo "Committing updated Cargo.toml"
21 git commit
-m "Update thrift crate version to ${THRIFT_RELEASE_VERSION}" -m "Client: rs"
23 echo "Packaging and releasing rust thrift crate with version ${THRIFT_RELEASE_VERSION}"