compile_all_bins.sh 316 B

1234567891011121314
  1. #!/bin/sh
  2. set -e
  3. CARGO="${CARGO:-cargo +nightly}"
  4. toplevel="$(git rev-parse --show-toplevel)"
  5. dirs="$(grep '"bin/' "$toplevel/Cargo.toml" | grep -v '#' | tr -d '", \t')"
  6. bins=""
  7. for i in $dirs; do
  8. bins="$bins $(grep '^name = ' "$i/Cargo.toml" | cut -d' ' -f3 | tr -d '"')"
  9. done
  10. make CARGO="$CARGO" BINS="$bins"