]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added shasum and download file for arm architecture.
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 5 Oct 2023 11:37:32 +0000 (13:37 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 5 Oct 2023 11:37:32 +0000 (13:37 +0200)
contrib/utilities/download_clang_format

index 8ded91ec1f20d0f500f4ad6f1b8d1fdde3ba9b1d..4479e0a2fc5baa726f343c85bd8ecf496d2600a8 100755 (executable)
@@ -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}"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.