Author: dsahlberg
Date: Sun Dec 17 19:54:54 2023
New Revision: 1914741
URL: http://svn.apache.org/viewvc?rev=1914741&view=rev
Log:
In tools/dev/unix-build:
Homebrew only has shasum, not sha256 or sha256sum. Make this work for the
buildscript
* Makefile.svn
(do_check_sha256): Add code for shasum
Modified:
subversion/trunk/tools/dev/unix-build/Makefile.svn
Modified: subversion/trunk/tools/dev/unix-build/Makefile.svn
URL:
http://svn.apache.org/viewvc/subversion/trunk/tools/dev/unix-build/Makefile.svn?rev=1914741&r1=1914740&r2=1914741&view=diff
==============================================================================
--- subversion/trunk/tools/dev/unix-build/Makefile.svn (original)
+++ subversion/trunk/tools/dev/unix-build/Makefile.svn Sun Dec 17 19:54:54 2023
@@ -169,6 +169,10 @@ if [ -x /bin/sha256 ]; then \
elif [ -x /usr/bin/sha256sum ]; then \
(cd $(DISTDIR) && \
echo "${SHA256_${1}} ${1}" | /usr/bin/sha256sum --quiet
--check); \
+elif [ -x /usr/bin/shasum ]; then \
+ echo "${SHA256_${1}} ${1}"; \
+ (cd $(DISTDIR) && \
+ echo "${SHA256_${1}} ${1}" | /usr/bin/shasum -a 256 -c
/dev/stdin ); \
else \
echo "Error: No tool found to verify checksum"; \
false; \