summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCasper <casperneo@uchicago.edu>2022-11-23 15:03:54 -0500
committerGitHub <noreply@github.com>2022-11-23 12:03:54 -0800
commit7b6c9f4a3c6089dd31c12939498f60580b1b86c2 (patch)
tree592fb7b97bdfa9a8cb07c250858dad0301bcc4f1 /scripts
parent5a42b2c76c28c4872f8d75c8768ad20f4677f117 (diff)
downloadflatbuffers-7b6c9f4a3c6089dd31c12939498f60580b1b86c2.tar.gz
flatbuffers-7b6c9f4a3c6089dd31c12939498f60580b1b86c2.tar.bz2
flatbuffers-7b6c9f4a3c6089dd31c12939498f60580b1b86c2.zip
Rurel (#7663)
* Update release script to update Rust version (it still needs to be published after) * Also update rust while I'm at it Co-authored-by: Casper Neo <cneo@google.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/release.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index 80a93c00..ba37e578 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -63,6 +63,11 @@ sed -i \
-e "s/\(version='\).*/\1$version',/" \
python/setup.py
+echo "Updating rust/flatbuffers/Cargo.toml..."
+sed -i \
+ "s/^version = \".*\"$/version = \"$version\"/g" \
+ rust/flatbuffers/Cargo.toml
+
echo "Updating FlatBuffers.podspec..."
sed -i \
-e "s/\(s.version\s*= \).*/\1'$version'/" \
@@ -78,4 +83,4 @@ echo "Updating FLATBUFFERS_X_X_X() version check...."
grep -rl 'FLATBUFFERS_\d*' * --exclude=release.sh | xargs -i@ \
sed -i \
-e "s/\(FLATBUFFERS_\)[0-9]\{2\}.*()/\1$version_underscore()/g" \
- @ \ No newline at end of file
+ @