Skip to content

Commit fd2e6be

Browse files
committed
update script
1 parent a3b6297 commit fd2e6be

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/bump-version-clients.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ echo "Bumping to version: $NEW_VERSION"
1313

1414
cd $ROOT_DIR
1515
cd clients/rust
16-
1716
perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" Cargo.toml
1817

19-
cd $ROOT_DIR/objectstore-types
20-
18+
cd $ROOT_DIR
19+
cd objectstore-types
2120
perl -pi -e "s/^version = \".*?\"/version = \"$NEW_VERSION\"/" Cargo.toml
2221

22+
cd $ROOT_DIR
23+
sed -i '' "/^objectstore-types.*path.*objectstore-types/s/version = \"[^\"]*\"/version = \"$NEW_VERSION\"/" Cargo.toml
24+
2325
cargo metadata --format-version 1 >/dev/null # update `Cargo.lock`
2426

2527
# ==================== PY ====================

0 commit comments

Comments
 (0)