Update cranelift requirement from 0.37.0 to 0.38.0 (#254)

closes #248, closes #249, closes #250, closes #251, closes #252
This commit is contained in:
Yury Delendik
2019-08-06 14:49:28 -05:00
committed by GitHub
parent 8ce68732f6
commit 5fc2d827b7
11 changed files with 54 additions and 30 deletions

24
cranelift-version.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -euo pipefail
# This is a convenience script for maintainers changing a cranelift
# dependencies versions. To use, bump the version number below, run the
# script.
topdir=$(dirname "$0")
cd "$topdir"
# All the cranelift-* crates have the same version number
version="0.38.0"
# Update all of the Cargo.toml files.
echo "Updating crate versions to $version"
for crate in . wasmtime-* fuzz; do
# Update the version number of this crate to $version.
sed -i.bk -e "/^cranelift-/s/\"[^\"]*\"/\"$version\"/" \
"$crate/Cargo.toml"
# Update the required version number of any cranelift* dependencies.
sed -i.bk -e "/^cranelift-/s/version = \"[^\"]*\"/version = \"$version\"/" \
"$crate/Cargo.toml"
done