lalrpop/version.sh
2015-07-27 05:36:19 -04:00

13 lines
304 B
Bash
Executable File

#!/bin/sh
#
# A script to bump the version number on all Cargo.toml files etc in
# an atomic fashion.
if [ "$1" == "" ]; then
echo "Usage: version.sh <new-version-number>"
exit 1
fi
perl -p -i -e 's/version *= *"[0-9.]+" # LALRPOP$/version = "'$1'" # LALRPOP/' \
$(ls lalrpop*/Cargo.toml)