Add script to bump version numbers.

This commit is contained in:
Sergio Benitez 2016-12-24 12:41:30 -08:00
parent 9cebab5037
commit 61a998f227
1 changed files with 14 additions and 0 deletions

14
scripts/bump_version.sh Executable file
View File

@ -0,0 +1,14 @@
#! /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