#!/bin/bash set -e CROSSPLATFORMS="linux/amd64 linux/386 linux/arm darwin/amd64" BUILDTAGS+=" exclude_graphdriver_devicemapper" for platform in $CROSSPLATFORMS; do ( export KEEPDEST=1 export DEST="$DEST/$platform" # bundles/VERSION/cross/GOOS/GOARCH/docker-VERSION mkdir -p "$DEST" ABS_DEST="$(cd "$DEST" && pwd -P)" export GOOS=${platform%/*} export GOARCH=${platform##*/} source "${MAKEDIR}/binary" ) done