mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-30 00:20:34 +00:00
15 lines
307 B
Bash
Executable file
15 lines
307 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Build all examples in examples directory
|
|
|
|
set -u -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
|