euler/build.sh

15 lines
418 B
Bash
Raw Normal View History

2024-10-09 17:10:10 +00:00
#!/bin/bash
cargo build --release --bin "[0-9]*" -q
cargo build --release --bin "[0-9]*" -q --target x86_64-pc-windows-gnu
find ./target/release -maxdepth 1 -type f -perm 755 | while read file; do
arr=(${file//\// })
mv $file binaries/linux/${arr[3]}
done
find ./target/x86_64-pc-windows-gnu/release -maxdepth 1 -type f -perm 755 | while read file; do
arr=(${file//\// })
mv $file binaries/win64/${arr[4]}
done