14 lines
391 B
Bash
Raw Normal View History

2024-11-08 12:23:55 +01:00
#!/bin/bash
# Source the parameters from params.sh
source ./params.sh
2025-03-10 14:49:13 +01:00
# Change to the parent directory of the script
cd "$(dirname "$0")/.." || { echo "Failed to change directory"; exit 1; }
2024-11-08 12:23:55 +01:00
# Build
cargo build --release || { echo "gen_input.sh: cargo build failed"; exit 101; }
2024-11-08 12:23:55 +01:00
# Run the Rust executable
cargo run --bin gen_input || { echo "gen_input.sh: cargo run failed"; exit 102; }