forked from StudioInfinity/dyna3
Make run-examples.sh
less location-dependent
This commit is contained in:
parent
f1865f85a1
commit
f8e9624fe3
1 changed files with 10 additions and 4 deletions
|
@ -3,8 +3,14 @@
|
|||
# Karol Kuczmarski. "Add examples to your Rust libraries"
|
||||
# http://xion.io/post/code/rust-examples.html
|
||||
#
|
||||
# you should invoke this script by calling `sh` or another interpreter, rather
|
||||
# than calling `souce`, to ensure that the script can find the manifest file for
|
||||
# the application prototype
|
||||
|
||||
cargo run --example irisawa-hexlet; echo
|
||||
cargo run --example three-spheres; echo
|
||||
cargo run --example point-on-sphere; echo
|
||||
cargo run --example kaleidocycle
|
||||
# find the manifest file for the application prototype
|
||||
MANIFEST="$(dirname -- $0)/Cargo.toml"
|
||||
|
||||
cargo run --manifest-path $MANIFEST --example irisawa-hexlet; echo
|
||||
cargo run --manifest-path $MANIFEST --example three-spheres; echo
|
||||
cargo run --manifest-path $MANIFEST --example point-on-sphere; echo
|
||||
cargo run --manifest-path $MANIFEST --example kaleidocycle
|
Loading…
Add table
Add a link
Reference in a new issue