cri-o/vendor/github.com/containers/storage/hack/make/cross

19 lines
414 B
Text
Raw Normal View History

#!/bin/bash
set -e
CROSSPLATFORMS="linux/amd64 linux/386 linux/arm"
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