From: Luca Heltai Date: Thu, 5 Oct 2023 11:37:32 +0000 (+0200) Subject: Added shasum and download file for arm architecture. X-Git-Tag: relicensing~437^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6d36328141a37222c67c73ec760bc5d352d9c3f;p=dealii.git Added shasum and download file for arm architecture. --- diff --git a/contrib/utilities/download_clang_format b/contrib/utilities/download_clang_format index 8ded91ec1f..4479e0a2fc 100755 --- a/contrib/utilities/download_clang_format +++ b/contrib/utilities/download_clang_format @@ -38,9 +38,15 @@ case "${OSTYPE}" in CHECKSUM="e6d92ab1b385f5e4392466a3cf651a9e403a5c212f4c1c3737ee173bc6d79d93 $FILENAME" ;; darwin*) - FILENAME="clang-format-${VERSION}-darwin-intel.tar.gz" CHECKSUM_CMD="shasum" - CHECKSUM="edff4341fb3b9e25c670902227538be6348d3b91ff88aa676ff8e7bb589b2ae5 $FILENAME" + ARCH=$(uname -m) + if [[ "$ARCH" == "arm64" ]]; then + FILENAME="clang-format-${VERSION}-darwin-arm.tar.gz" + CHECKSUM="8b1733414dec5a91e15060f482bebeb0723ac8e8f3115241c1ea595302758b46 $FILENAME" + else + FILENAME="clang-format-${VERSION}-darwin-intel.tar.gz" + CHECKSUM="edff4341fb3b9e25c670902227538be6348d3b91ff88aa676ff8e7bb589b2ae5 $FILENAME" + fi ;; *) echo "unknown: ${OSTYPE}"