#!/bin/zsh
#MISE description="compile and package local release build"
#USAGE flag "--static" help="build static release"
#USAGE flag "-t --target <target>" help="build for <target>"
#USAGE flag "--bindist <path>" env="MDBIN_PATH" default="bindist" help="path to bindist tools within root"

export MDBIN_TARGET="$usage_target"
if [[ $usage_static ]]; then
	export MDBIN_STATIC=1
fi

msg -dbg "executing build script"
exec "${usage_bindist}/do-build.sh"
