#!/bin/bash set -x # PUshd to the script directory pushd "$(dirname "$0")" > /dev/null # Get current arch from rustup arch=$(rustup show | grep "Default host" | cut -d ':' -f 2 | tr -d ' ') cargo build --release --bin ucopy --features copy --target-dir "./target/${arch}" cargo build --release --bin utrans --target-dir "./target/${arch}" cargo clean mkdir -p "./${arch}" cp -r "./target/${arch}/release/ucopy" "./${arch}/." cp -r "./target/${arch}/release/utrans" "./${arch}/." popd