mirror of https://github.com/fdehau/tui-rs
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
308 B
Bash
16 lines
308 B
Bash
7 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Build all examples in examples directory
|
||
|
|
||
|
set -eu -o pipefail
|
||
|
|
||
|
for file in examples/*.rs; do
|
||
|
name=$(basename ${file//.rs/})
|
||
|
echo "[EXAMPLE] $name"
|
||
|
if [[ "$name" == "rustbox" ]]; then
|
||
|
cargo build --features rustbox --example "$name"
|
||
|
else
|
||
|
cargo build --example "$name"
|
||
|
fi
|
||
|
done
|