#!/bin/sh # Building cargo_targets="json-api" mkdir -p bin/ # Statically built binaries make this part really easy 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/ cd ../ done echo Done building