#!/usr/bin/env bash SCRIPT_BASEDIR=$(dirname "$0") which rustc &> /dev/null || { echo 'ERROR: rustc not found in PATH'; exit 1; } which cargo &> /dev/null || { echo 'ERROR: cargo not found in PATH'; exit 1; } which strip &> /dev/null || { echo 'ERROR: strip not found in PATH'; exit 1; } cd "${SCRIPT_BASEDIR}/.." cargo build --release ls -la target/release/roro strip target/release/roro ls -la target/release/roro