#!/bin/sh set -eu eval "$(args $0 src build -k part clean -- "$@")" cmd () { echo echo "${command_name}: $1" >&2 eval "$1" || { status="$?" echo "exit status: $status" return $status } } cmd "freshen-and-patch '$src'" cmd "config-build '$src' '$build' ${part+--part=${part}}" cmd "cd '${build}'" if [ x${clean+set} = xset ]; then cmd "wipe-build-tree '$clean'" fi cmd "make install ${part+install-${part}}"