[banshee] make-release: Simplify checksum calculation



commit a5deb1c67eee433241f79c77234efef7eb9ccdbb
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Fri Mar 25 13:19:05 2011 +0800

    make-release: Simplify checksum calculation

 extras/make-release |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/extras/make-release b/extras/make-release
index 26868a4..8c46f46 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
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]