#!/bin/sh # Author: shockrah # Building cargo_targets="json-api" no_cargo_cache=false ask_help=false mkdir -p bin/ # Statically built binaries make this part really easy build_cargo_targets() { for target in $cargo_targets;do echo ================================================ echo = echo = echo = echo = Building $target echo = echo = echo = echo ================================================ cd $target cargo build --release cp target/release/$target ../bin/ if [ $no_cargo_cache = "true" ];then cargo clean fi cd ../ done } show_help() { cat <