#!/usr/bin/env sh

set -eu

if [ $# -ne 0 ]; then
    echo "no arguments allowed for ${0##*/}, given: $*" >&2
    exit 64
fi

bindir=$( cd "${0%/*}" && pwd )

"$bindir"/docker-build-proxy
"$bindir"/docker-build-controller
"$bindir"/docker-build-web
"$bindir"/docker-build-debug
if [ -z "${LINKERD_LOCAL_BUILD_CLI:-}" ]; then
    "$bindir"/docker-build-cli-bin
else
    "$bindir"/build-cli-bin
fi
"$bindir"/docker-build-jaeger-webhook
"$bindir"/docker-build-metrics-api
"$bindir"/docker-build-tap
