version-bump.sh
This file
Path
scripts/version-bump.sh
22 lines · 555 bytes · Shell
Last changed by
Merge pull request #1548 from tmccombs/release-9.1.0Thayne McCombsbefore adoption8acd772
History of this fileTake it
Merge pull request #1548 from tmccombs/release-9.1.0Thayne McCombsbefore adoption8acd772
lines 1–22why, one step back1#!/usr/bin/bash23set -eu45# This script automates the "Version bump" section67version="$1"89if [[ -z $version ]]; then10 echo "Usage: must supply version as first argument" >&211 exit 112fi1314git switch -C "release-$version"15sed -i -e "0,/^\[badges/{s/^version =.*/version = \"$version\"/}" Cargo.toml1617msrv="$(grep -F rust-version Cargo.toml | sed -e 's/^rust-version= "\(.*\)"/\1/')"1819sed -i -e "s/Note that rust version \*[0-9.]+\* or later/Note that rust version *$msrv* or later/" README.md2021sed -i -e "s/^# Upcoming release/# $version/" CHANGELOG.md22