Fix a lot of the sha256 and md5 stuff to be more DRY and extendible, and on more things (specifically, the tgz files too)
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon) Upstream-commit: 6b46a09186b6a53959d567014b8d0e1cff761bc8 Component: engine
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
DEST=$1
|
||||
|
||||
go build \
|
||||
-o $DEST/docker-$VERSION \
|
||||
-o "$DEST/docker-$VERSION" \
|
||||
"${BUILDFLAGS[@]}" \
|
||||
-ldflags "
|
||||
$LDFLAGS
|
||||
@ -12,9 +12,4 @@ go build \
|
||||
./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
|
||||
hash_files "$DEST/docker-$VERSION"
|
||||
|
||||
Reference in New Issue
Block a user