forked from mirrors/gecko-dev
MozReview-Commit-ID: KbcADpNltYq Differential Revision: https://phabricator.services.mozilla.com/D3042 --HG-- rename : third_party/rust/synstructure/.cargo-checksum.json => third_party/rust/synstructure-0.8.1/.cargo-checksum.json rename : third_party/rust/synstructure/Cargo.toml => third_party/rust/synstructure-0.8.1/Cargo.toml rename : third_party/rust/synstructure/README.md => third_party/rust/synstructure-0.8.1/README.md rename : third_party/rust/synstructure/src/lib.rs => third_party/rust/synstructure-0.8.1/src/lib.rs rename : third_party/rust/synstructure/src/macros.rs => third_party/rust/synstructure-0.8.1/src/macros.rs extra : moz-landing-system : lando
14 lines
264 B
Bash
Executable file
14 lines
264 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cargo build --examples
|
|
|
|
for file in examples/*; do
|
|
filename=$(basename ${file})
|
|
extension=${filename##*.}
|
|
example_name=${filename%.*}
|
|
if [[ "${extension}" = "rs" ]]; then
|
|
cargo run --example ${example_name}
|
|
fi
|
|
done
|