mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
32e61b8f5c
We might want to break it up into smaller pieces (eg. tools in one place, documents in another) but let's worry about that later. Signed-off-by: Solomon Hykes <solomon@docker.com>
17 lines
276 B
Bash
Executable file
17 lines
276 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
DEST=$1
|
|
|
|
go build \
|
|
-o "$DEST/docker-$VERSION" \
|
|
"${BUILDFLAGS[@]}" \
|
|
-ldflags "
|
|
$LDFLAGS
|
|
$LDFLAGS_STATIC_DOCKER
|
|
" \
|
|
./docker
|
|
echo "Created binary: $DEST/docker-$VERSION"
|
|
ln -sf "docker-$VERSION" "$DEST/docker"
|
|
|
|
hash_files "$DEST/docker-$VERSION"
|