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)
This commit is contained in:
Tianon Gravi
2014-03-19 19:58:39 -06:00
parent 372b7282cb
commit 6b46a09186
5 changed files with 100 additions and 59 deletions

View File

@@ -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"