mirror of
https://github.com/fdehau/tui-rs.git
synced 2024-11-11 01:10:24 +00:00
16 lines
308 B
Bash
Executable File
16 lines
308 B
Bash
Executable File
#!/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
|