Add a publish-all.sh script.
Set identical version numbers on all cretonne-* crates and print "cargo publish" commands. Update all crates to version 0.1.0.
This commit is contained in:
committed by
Dan Gohman
parent
f02c8fd1ff
commit
ec746c3359
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cretonne-tools"
|
name = "cretonne-tools"
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
description = "Binaries for testing the Cretonne library"
|
description = "Binaries for testing the Cretonne library"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
documentation = "https://cretonne.readthedocs.io/"
|
documentation = "https://cretonne.readthedocs.io/"
|
||||||
@@ -13,11 +13,11 @@ name = "cton-util"
|
|||||||
path = "src/cton-util.rs"
|
path = "src/cton-util.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cretonne = { path = "lib/cretonne" }
|
cretonne = { path = "lib/cretonne", version = "0.1.0" }
|
||||||
cretonne-reader = { path = "lib/reader" }
|
cretonne-reader = { path = "lib/reader", version = "0.1.0" }
|
||||||
cretonne-frontend = { path = "lib/frontend" }
|
cretonne-frontend = { path = "lib/frontend", version = "0.1.0" }
|
||||||
cretonne-wasm = { path = "lib/wasm" }
|
cretonne-wasm = { path = "lib/wasm", version = "0.1.0" }
|
||||||
cretonne-native = { path = "lib/native" }
|
cretonne-native = { path = "lib/native", version = "0.1.0" }
|
||||||
filecheck = { path = "lib/filecheck" }
|
filecheck = { path = "lib/filecheck" }
|
||||||
docopt = "0.8.0"
|
docopt = "0.8.0"
|
||||||
serde = "1.0.8"
|
serde = "1.0.8"
|
||||||
|
|||||||
34
cranelift/publish-all.sh
Executable file
34
cranelift/publish-all.sh
Executable file
@@ -0,0 +1,34 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
cd $(dirname "$0")
|
||||||
|
topdir=$(pwd)
|
||||||
|
|
||||||
|
# All the cretonne-* crates have the same version number
|
||||||
|
# The filecheck crate version is managed independently.
|
||||||
|
version="0.1.0"
|
||||||
|
|
||||||
|
# Update all of the Cargo.toml files.
|
||||||
|
#
|
||||||
|
# The main Cargo.toml in the top-level directory is the cretonne-tools crate which we don't publish.
|
||||||
|
echo "Updating crate versions to $version"
|
||||||
|
for crate in . lib/*; do
|
||||||
|
if [ "$crate" = "lib/filecheck" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
# Update the version number of this crate to $version.
|
||||||
|
sed -i "" -e "s/^version = .*/version = \"$version\"/" $crate/Cargo.toml
|
||||||
|
# Update the required version number of any cretonne* dependencies.
|
||||||
|
sed -i "" -e "/^cretonne/s/version = \"[^\"]*\"/version = \"$version\"/" $crate/Cargo.toml
|
||||||
|
done
|
||||||
|
|
||||||
|
# Update our local Cargo.lock (not checked in).
|
||||||
|
cargo update
|
||||||
|
./test-all.sh
|
||||||
|
|
||||||
|
# Commands needed to publish.
|
||||||
|
#
|
||||||
|
# Note that libraries need to be published in topological order.
|
||||||
|
|
||||||
|
for crate in filecheck cretonne frontend native reader wasm; do
|
||||||
|
echo cargo publish --manifest-path lib/$crate/Cargo.toml
|
||||||
|
done
|
||||||
@@ -1,12 +1,11 @@
|
|||||||
[package]
|
[package]
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
name = "cretonne"
|
name = "cretonne"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
description = "Low-level code generator library"
|
description = "Low-level code generator library"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
documentation = "https://cretonne.readthedocs.io/"
|
documentation = "https://cretonne.readthedocs.io/"
|
||||||
repository = "https://github.com/stoklund/cretonne"
|
repository = "https://github.com/stoklund/cretonne"
|
||||||
publish = false
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
name = "filecheck"
|
name = "filecheck"
|
||||||
version = "0.0.1"
|
version = "0.1.0"
|
||||||
description = "Library for matching test outputs against filecheck directives"
|
description = "Library for matching test outputs against filecheck directives"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
repository = "https://github.com/stoklund/cretonne"
|
repository = "https://github.com/stoklund/cretonne"
|
||||||
@@ -11,4 +11,4 @@ documentation = "https://docs.rs/filecheck"
|
|||||||
name = "filecheck"
|
name = "filecheck"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
regex = "0.2.2"
|
regex = "0.2.6"
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
[package]
|
[package]
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
name = "cretonne-frontend"
|
name = "cretonne-frontend"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
description = "Cretonne IL builder helper"
|
description = "Cretonne IL builder helper"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
documentation = "https://cretonne.readthedocs.io/"
|
documentation = "https://cretonne.readthedocs.io/"
|
||||||
repository = "https://github.com/stoklund/cretonne"
|
repository = "https://github.com/stoklund/cretonne"
|
||||||
publish = false
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "cton_frontend"
|
name = "cton_frontend"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cretonne = { path = "../cretonne" }
|
cretonne = { path = "../cretonne", version = "0.1.0" }
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cretonne-native"
|
name = "cretonne-native"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
publish = false
|
|
||||||
description = "Support for targeting the host with Cretonne"
|
description = "Support for targeting the host with Cretonne"
|
||||||
repository = "https://github.com/stoklund/cretonne"
|
repository = "https://github.com/stoklund/cretonne"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
@@ -12,7 +11,7 @@ readme = "README.md"
|
|||||||
name = "cton_native"
|
name = "cton_native"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cretonne = { path = "../cretonne" }
|
cretonne = { path = "../cretonne", version = "0.1.0" }
|
||||||
|
|
||||||
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
|
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
|
||||||
raw-cpuid = "3.0.0"
|
raw-cpuid = "3.0.0"
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
[package]
|
[package]
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
name = "cretonne-reader"
|
name = "cretonne-reader"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
description = "Cretonne textual IL reader"
|
description = "Cretonne textual IL reader"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
documentation = "https://cretonne.readthedocs.io/"
|
documentation = "https://cretonne.readthedocs.io/"
|
||||||
repository = "https://github.com/stoklund/cretonne"
|
repository = "https://github.com/stoklund/cretonne"
|
||||||
publish = false
|
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "cton_reader"
|
name = "cton_reader"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cretonne = { path = "../cretonne" }
|
cretonne = { path = "../cretonne", version = "0.1.0" }
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cretonne-wasm"
|
name = "cretonne-wasm"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Cretonne Project Developers"]
|
authors = ["The Cretonne Project Developers"]
|
||||||
publish = false
|
|
||||||
description = "Translator from WebAssembly to Cretonne IL"
|
description = "Translator from WebAssembly to Cretonne IL"
|
||||||
repository = "https://github.com/stoklund/cretonne"
|
repository = "https://github.com/stoklund/cretonne"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
@@ -13,8 +12,8 @@ name = "cton_wasm"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wasmparser = "0.14.1"
|
wasmparser = "0.14.1"
|
||||||
cretonne = { path = "../cretonne" }
|
cretonne = { path = "../cretonne", version = "0.1.0" }
|
||||||
cretonne-frontend = { path = "../frontend" }
|
cretonne-frontend = { path = "../frontend", version = "0.1.0" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempdir = "0.3.5"
|
tempdir = "0.3.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user