Skip to content

Commit 9370fd8

Browse files
committed
add bump-version script
1 parent a5083b9 commit 9370fd8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/bump-version.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
cd $SCRIPT_DIR/..
6+
7+
OLD_VERSION="${1}"
8+
NEW_VERSION="${2}"
9+
10+
echo "Current version: ${OLD_VERSION}"
11+
echo "Bumping version: ${NEW_VERSION}"
12+
13+
perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" Cargo.toml

0 commit comments

Comments
 (0)