[Cryptech-Commits] [sw/thirdparty/sqlite3] 02/06: Search for sha256sum, use it if we found it, warn otherwise.

git at cryptech.is git at cryptech.is
Tue Jul 7 18:22:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/thirdparty/sqlite3.

commit a39aafced02d1c52760b3e948464a8041787d36f
Author: Rob Austein <sra at hactrn.net>
Date:   Fri Jun 19 14:03:30 2015 -0400

    Search for sha256sum, use it if we found it, warn otherwise.
---
 GNUmakefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/GNUmakefile b/GNUmakefile
index cb10c3f..447589d 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -9,6 +9,8 @@ BUILD	:= ${TOP}/build
 OUTPUT	:= ${BUILD}/sqlite3.h ${BUILD}/.libs/libsqlite3.a ${BUILD}/sqlite3
 TARGETS	:= $(notdir ${OUTPUT})
 
+SHA256SUM := $(firstword $(wildcard /usr/local/bin/sha256sum /usr/local/bin/gsha256sum /usr/bin/sha256sum))
+
 all: ${TARGETS}
 
 clean:
@@ -21,7 +23,11 @@ ${TARBALL}:
 	wget ${URL}
 
 ${BUILD}/.build_done: ${TARBALL} GNUmakefile
-	sha256sum --check Checksums
+ifeq "" "${SHA256SUM}"
+	@echo "Couldn't find sha256sum, not verifying distribution checksum"
+else
+	${SHA256SUM} --check Checksums
+endif
 	rm -rf ${BUILD}
 	mkdir ${BUILD}
 	cd ${BUILD}; tar -xf ${TARBALL} --strip-components=1



More information about the Commits mailing list