]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update infrastructure some more
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 11 Jun 2021 20:43:16 +0000 (16:43 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 27 Jul 2021 19:19:43 +0000 (15:19 -0400)
contrib/utilities/download_clang_format
contrib/utilities/indent
contrib/utilities/indent-all
contrib/utilities/indent.py

index 76aa3862c8557e93989f456a4ed80e6565f98c52..e349474dfd6eb13255b33b19b25d228d532a1160 100755 (executable)
 #
 
 PRG="$(cd "$(dirname "$0")" && pwd)/programs"
-CLANG_PATH="${PRG}/clang-6"
+CLANG_PATH="${PRG}/clang-11"
 
 URL="https://github.com/dealii/dealii/releases/download/v9.0.0"
 
 # Find out which kind of OS we are running and set the appropriate settings
 case "${OSTYPE}" in
   linux*)
-    FILENAME="clang-format-6-linux.tar.gz"
+    FILENAME="clang-format-11-linux.tar.gz"
     CHECKSUM_CMD="sha256sum"
-    CHECKSUM="26c046456d0a8c109df74e890f46bbe4ad50b035a9febc13ec41c22dabd005a5  $FILENAME"
-    ;;
-  darwin*)
-    FILENAME="clang-format-6-darwin.tar.gz"
-    CHECKSUM_CMD="shasum"
-    CHECKSUM="8eaf852cc96947245de706f1059e764b7086a82e8bd769da2654936acb1d63e0  $FILENAME"
+    CHECKSUM="a25874e0d5691aa6472061eb843890a8ad09094fb0ab2aab3f412d8762d494b3 $FILENAME"
     ;;
   *)
     echo "unknown: ${OSTYPE}"
@@ -59,7 +54,7 @@ then
     exit 1
 fi
 
-echo "Downloading and installing clang-format-6 from ${URL}/${FILENAME}"
+echo "Downloading and installing clang-format-11 from ${URL}/${FILENAME}"
 mkdir "${CLANG_PATH}"
 
 tmpdir="${TMPDIR:-/tmp}/dealiiclang${RANDOM}${RANDOM}"
index 8eb39b40a61e05a65b20bc0a177d0554c09e667d..90f803493c0295d41a8bea1946d9917dc3f9eb17 100755 (executable)
@@ -27,9 +27,9 @@
 #
 # The script can be invoked with DEAL_II_CLANG_FORMAT to change
 # the default version of clang-format. For example:
-#   DEAL_II_CLANG_FORMAT=clang-format-6.0 ./contrib/utilities/indent
+#   DEAL_II_CLANG_FORMAT=clang-format-11.0 ./contrib/utilities/indent
 # or,
-#   make DEAL_II_CLANG_FORMAT="clang-format-6.0" indent
+#   make DEAL_II_CLANG_FORMAT="clang-format-11.0" indent
 #
 # Note: If the script is invoked with REPORT_ONLY=true set,
 #   REPORT_ONLY=true ./contrib/utilities/indent
index 949b2af9cf280141a8ba7e9026830d95facdf30e..7e9e2eefafd6139bc8fcef1438a4b078d5c83f96 100755 (executable)
@@ -31,9 +31,9 @@
 #
 # The script can be invoked with DEAL_II_CLANG_FORMAT to change
 # the default version of clang-format. For example:
-#   DEAL_II_CLANG_FORMAT=clang-format-6.0 ./contrib/utilities/indent
+#   DEAL_II_CLANG_FORMAT=clang-format-11.0 ./contrib/utilities/indent
 # or,
-#   make DEAL_II_CLANG_FORMAT="clang-format-6.0" indent
+#   make DEAL_II_CLANG_FORMAT="clang-format-11.0" indent
 #
 # Note: If the script is invoked with REPORT_ONLY=true set,
 #   REPORT_ONLY=true ./contrib/utilities/indent-all
index 82ba521487e7614bec88d8b809dd15806be89acb..5e6c4b48c1312aa2e2b0475fdcafb0e1f9752e45 100644 (file)
@@ -289,11 +289,11 @@ if __name__ == "__main__":
 
     #
     # If clang-format-binary is not found, search again in
-    # contrib/utlitlies/programs/clang-6/bin
+    # contrib/utlitlies/programs/clang-11/bin
     #
     if not PARSED_ARGUMENTS.clang_format_binary:
         os.environ["PATH"] += ':' + \
-            os.getcwd() + "/contrib/utilities/programs/clang-6/bin"
+            os.getcwd() + "/contrib/utilities/programs/clang-11/bin"
         PARSED_ARGUMENTS.clang_format_binary = distutils.spawn.find_executable(
             "clang-format")
 

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.