Files
darkfi/script/compile_all_bins.sh
2022-05-16 18:46:24 +02:00

13 lines
267 B
Bash
Executable File

#!/bin/sh
set -e
toplevel="$(git rev-parse --show-toplevel)"
dirs="$(grep '"bin/' "$toplevel/Cargo.toml" | grep -v '#' | tr -d '", \t')"
bins=""
for i in $dirs; do
bins="$bins $(grep '^name = ' "$i/Cargo.toml" | cut -d' ' -f3 | tr -d '"')"
done
make BINS="$bins"