version-bump.sh
This file
Path
scripts/version-bump.sh
22 lines · 555 bytes · Shell
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than 86d6e2d point at it.
Merge pull request #1657 from sharkdp/dependabot/cargo/clap-4.5.23Tavian Barnesbefore adoption86d6e2d
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