mirror of
https://github.com/rwf2/Rocket.git
synced 2024-12-27 21:02:41 +00:00
15 lines
304 B
Bash
15 lines
304 B
Bash
|
#! /usr/bin/env bash
|
||
|
|
||
|
#
|
||
|
# Bumps the version number from <current> to <next> on all libraries.
|
||
|
#
|
||
|
|
||
|
if [ -z ${1} ] || [ -z ${2} ]; then
|
||
|
echo "Usage: $0 <current> <next>"
|
||
|
echo "Example: $0 0.1.1 0.1.2"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
find . -name "*.toml" | xargs sed -i.bak "s/${1}/${2}/g"
|
||
|
find . -name "*.bak" | xargs rm
|