summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorAlexander Kojevnikov <alexander@kojevnikov.com>2011-03-25 13:19:05 +0800
committerAlexander Kojevnikov <alexander@kojevnikov.com>2011-03-25 13:19:05 +0800
commita5deb1c67eee433241f79c77234efef7eb9ccdbb (patch)
tree4ad37adf69a5e49abecbb895c0bb061c6c93c176 /extras
parent7323f49e2324e9ef4dcf34b253e946275457b0a8 (diff)
make-release: Simplify checksum calculation
Diffstat (limited to 'extras')
-rwxr-xr-xextras/make-release8
1 files changed, 2 insertions, 6 deletions
diff --git a/extras/make-release b/extras/make-release
index 26868a45f..8c46f468a 100755
--- a/extras/make-release
+++ b/extras/make-release
@@ -31,7 +31,7 @@ RELEASE_RC_FILE="release-rc"
case "$(uname)" in
FreeBSD)
MAKE=gmake
- SHA256="sha256 -r"
+ SHA256="shasum -a 256"
;;
Darwin)
MAKE=make
@@ -43,10 +43,6 @@ case "$(uname)" in
;;
esac
-function sha256 {
- exec $SHA256 $@ | awk '{print $1 " " $2}'
-}
-
cat <<EOF
Release Summary
@@ -110,7 +106,7 @@ function prepare_upload () {
|| bail "Could not copy NEWS file"
(cd release-data && {
- sha256 * > ${PACKAGE_NAME}-${PACKAGE_VERSION}.sha256sum \
+ $SHA256 * > ${PACKAGE_NAME}-${PACKAGE_VERSION}.sha256sum \
|| bail "Could not sha256sum the release files"
}) || exit 1
}