2017-02-01 00:45:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2017-04-27 17:59:23 +00:00
|
|
|
CROSSPLATFORMS="linux/amd64 linux/386 linux/arm darwin/amd64"
|
2017-02-01 00:45:59 +00:00
|
|
|
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
|