]> https://gitweb.dealii.org/ - dealii.git/commitdiff
update clang-format download script to version 11
authorMatthias Maier <tamiko@43-1.org>
Sat, 12 Jun 2021 04:57:01 +0000 (23:57 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 27 Jul 2021 19:19:43 +0000 (15:19 -0400)
contrib/utilities/download_clang_format

index e349474dfd6eb13255b33b19b25d228d532a1160..120fd632495310417aed7e5ff6e4c832011e0113 100755 (executable)
 # This can be done with the compile_clang_format script.
 #
 
+VERSION=11
 PRG="$(cd "$(dirname "$0")" && pwd)/programs"
-CLANG_PATH="${PRG}/clang-11"
+CLANG_PATH="${PRG}/clang-${VERSION}"
 
-URL="https://github.com/dealii/dealii/releases/download/v9.0.0"
+URL="https://github.com/dealii/dealii/releases/download/v9.3.0"
 
 # Find out which kind of OS we are running and set the appropriate settings
 case "${OSTYPE}" in
   linux*)
-    FILENAME="clang-format-11-linux.tar.gz"
+    FILENAME="clang-format-${VERSION}-linux.tar.gz"
     CHECKSUM_CMD="sha256sum"
-    CHECKSUM="a25874e0d5691aa6472061eb843890a8ad09094fb0ab2aab3f412d8762d494b3 $FILENAME"
+    CHECKSUM="9420c4ed80268500ef357eb42b2e77dc55e807e559d6d9851f4808a9939fa47b  $FILENAME"
+    ;;
+  darwin*)
+    FILENAME="clang-format-${VERSION}-darwin.tar.gz"
+    CHECKSUM_CMD="shasum"
+    CHECKSUM="8eaf852cc96947245de706f1059e764b7086a82e8bd769da2654936acb1d63e0  $FILENAME"
     ;;
   *)
     echo "unknown: ${OSTYPE}"
@@ -54,7 +60,7 @@ then
     exit 1
 fi
 
-echo "Downloading and installing clang-format-11 from ${URL}/${FILENAME}"
+echo "Downloading and installing clang-format-${VERSION} from ${URL}/${FILENAME}"
 mkdir "${CLANG_PATH}"
 
 tmpdir="${TMPDIR:-/tmp}/dealiiclang${RANDOM}${RANDOM}"

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.