1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/hack/make/binary
Sven Dowideit 43febdd432 whitespace-blind
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
2014-03-20 09:35:58 +10:00

20 lines
411 B
Bash
Executable file

#!/bin/bash
DEST=$1
go build \
-o $DEST/docker-$VERSION \
"${BUILDFLAGS[@]}" \
-ldflags "
$LDFLAGS
$LDFLAGS_STATIC_DOCKER
" \
./docker
echo "Created binary: $DEST/docker-$VERSION"
if command -v md5sum &> /dev/null; then
md5sum "$DEST/docker-$VERSION" > "$DEST/docker-$VERSION.md5"
fi
if command -v sha256sum &> /dev/null; then
sha256sum "$DEST/docker-$VERSION" > "$DEST/docker-$VERSION.sha256"
fi