diff --git a/src/arnoldi/PACKAGE b/src/arnoldi/PACKAGE index 57bfcf767d..f82a40a006 100644 --- a/src/arnoldi/PACKAGE +++ b/src/arnoldi/PACKAGE @@ -2,5 +2,7 @@ "description": "Arnoldi iteration eigenvalue algorithm", "archive": "libdbcsrarnoldi", "requires": ["../mpiwrap", "../base", "../dbcsrx", "../common"], - "public": ["arnoldi_api.F",], + "public": [ + "arnoldi_api.F", + ], } diff --git a/src/grid/hip/PACKAGE b/src/grid/hip/PACKAGE index e177bd058b..c0983819d2 100644 --- a/src/grid/hip/PACKAGE +++ b/src/grid/hip/PACKAGE @@ -1,5 +1,8 @@ { "description": "Optimized GPU backend (ROCM)", - "requires": ["../common", "../../offload",], + "requires": [ + "../common", + "../../offload", + ], "archive": "libcp2kgridrocm", } diff --git a/src/offload/PACKAGE b/src/offload/PACKAGE index 7820e44522..d9cbdda56a 100644 --- a/src/offload/PACKAGE +++ b/src/offload/PACKAGE @@ -1,6 +1,8 @@ { "description": "Common infrastructure for offloading to accelerator devices", - "requires": ["../base",], + "requires": [ + "../base", + ], "public": [ "offload_api.F", "offload_buffer.h", diff --git a/tools/docker/generate_dockerfiles.py b/tools/docker/generate_dockerfiles.py index b493eba156..3e8882baf5 100755 --- a/tools/docker/generate_dockerfiles.py +++ b/tools/docker/generate_dockerfiles.py @@ -100,7 +100,7 @@ def main() -> None: def regtest(version: str, arch: str = "local", testopts: str = "") -> str: return ( install_cp2k(version=version, arch=arch) - + fr""" + + rf""" # Run regression tests. ARG TESTOPTS="{testopts}" COPY ./tools/docker/scripts/test_regtest.sh ./ @@ -117,7 +117,7 @@ RUN /bin/bash -c " \ def regtest_postponed(version: str, arch: str = "local") -> str: return ( install_cp2k(version=version, arch=arch) - + fr""" + + rf""" # Postpone running the regression tests until the container is executed. ARG TESTOPTS COPY ./tools/docker/scripts/test_regtest.sh ./ @@ -133,7 +133,7 @@ CMD ["./test_regtest.sh", "{arch}", "{version}"] def build(version: str, arch: str = "local") -> str: return ( install_cp2k(version=version, arch=arch) - + fr""" + + rf""" # Run build test. COPY ./tools/docker/scripts/test_build.sh . RUN ./test_build.sh "{arch}" "{version}" 2>&1 | tee report.log @@ -146,7 +146,7 @@ RUN ./test_build.sh "{arch}" "{version}" 2>&1 | tee report.log def performance(arch: str = "local") -> str: return ( install_cp2k(version="psmp", arch=arch) - + fr""" + + rf""" # Run performance test for {arch}. COPY ./benchmarks ./benchmarks COPY ./tools/docker/scripts/test_performance.sh \ @@ -162,7 +162,7 @@ RUN ./test_performance.sh "{arch}" 2>&1 | tee report.log def coverage(version: str) -> str: return ( install_cp2k(version=version, arch="local_coverage") - + fr""" + + rf""" # Run coverage test for {version}. COPY ./tools/docker/scripts/test_coverage.sh . RUN ./test_coverage.sh "{version}" 2>&1 | tee report.log @@ -175,7 +175,7 @@ RUN ./test_coverage.sh "{version}" 2>&1 | tee report.log def conventions() -> str: return ( install_cp2k(version="psmp", arch="local_warn") - + fr""" + + rf""" # Run test for conventions. COPY ./arch/Linux-x86-64-gfortran.dumpast ./arch/ COPY ./tools/conventions ./tools/conventions @@ -192,7 +192,7 @@ RUN /bin/bash -ec " \ def manual() -> str: return ( install_cp2k(version="psmp", arch="local", revision=True) - + fr""" + + rf""" # Generate manual. COPY ./tools/manual ./tools/manual COPY ./tools/input_editing ./tools/input_editing @@ -206,7 +206,7 @@ RUN ./test_manual.sh 2>&1 | tee report.log # ====================================================================================== def precommit() -> str: return ( - fr""" + rf""" FROM ubuntu:22.04 # Install dependencies. @@ -229,7 +229,7 @@ RUN ./tools/docker/scripts/test_precommit.sh 2>&1 | tee report.log def test_3rd_party(name: str) -> str: return ( install_cp2k(version="sdbg", arch="local") - + fr""" + + rf""" # Run test for {name}. COPY ./tools/docker/scripts/test_{name}.sh . RUN ./test_{name}.sh 2>&1 | tee report.log @@ -241,7 +241,7 @@ RUN ./test_{name}.sh 2>&1 | tee report.log # ====================================================================================== def test_without_build(name: str) -> str: return ( - fr""" + rf""" FROM ubuntu:22.04 # Install dependencies. @@ -280,7 +280,7 @@ CMD cat $(find ./report.log -mmin +10) | sed '/^Summary:/ s/$/ (cached)/' def production(version: str, arch: str = "local") -> str: return ( install_cp2k(version=version, arch=arch, revision=True, prod=True) - + fr""" + + rf""" # Run regression tests. ARG TESTOPTS RUN /bin/bash -c " \ @@ -340,7 +340,7 @@ def install_cp2k( input_block = "\n".join(input_lines) run_block = " && \\\n ".join(run_lines) - return fr""" + return rf""" # Install CP2K using {arch}.{version}. WORKDIR /opt/cp2k {input_block} @@ -367,9 +367,11 @@ def toolchain_full( # ====================================================================================== def toolchain_ubuntu_nompi( - base_image: str = "ubuntu:22.04", gcc_version: int = 10, libvori: bool = True, + base_image: str = "ubuntu:22.04", + gcc_version: int = 10, + libvori: bool = True, ) -> str: - return fr""" + return rf""" FROM {base_image} # Install Ubuntu packages. @@ -409,7 +411,7 @@ RUN ln -sf /usr/bin/gcc-{gcc_version} /usr/local/bin/gcc && \ # ====================================================================================== def toolchain_intel() -> str: # See https://github.com/cp2k/cp2k/issues/1936 - return fr""" + return rf""" FROM intel/oneapi-hpckit:2021.4-devel-ubuntu18.04 ENV PATH=/opt/intel/oneapi/compiler/2021.4.0/linux/bin/intel64:/opt/intel/oneapi/mpi/2021.4.0/bin:${{PATH}} @@ -434,7 +436,7 @@ ENTRYPOINT [] # ====================================================================================== def toolchain_cuda(gpu_ver: str) -> str: - return fr""" + return rf""" FROM nvidia/cuda:11.3.1-devel-ubuntu20.04 # Setup CUDA environment. @@ -455,7 +457,7 @@ RUN apt-get update -qq && apt-get install -qq --no-install-recommends \ # ====================================================================================== def toolchain_hip_cuda(gpu_ver: str) -> str: - return fr""" + return rf""" FROM nvidia/cuda:11.3.1-devel-ubuntu20.04 # Setup CUDA environment. @@ -558,7 +560,7 @@ RUN hipconfig # ====================================================================================== def toolchain_hip_rocm(gpu_ver: str) -> str: - return fr""" + return rf""" FROM rocm/dev-ubuntu-20.04:4.5.2-complete # Install some Ubuntu packages. @@ -592,7 +594,7 @@ def install_toolchain(base_image: str, **kwargs: Optional[str]) -> str: install_args.append(f" --{k} \\") install_args_str = "\n".join(install_args) - return fr""" + return rf""" # Install requirements for the toolchain. WORKDIR /opt/cp2k-toolchain COPY ./tools/toolchain/install_requirements*.sh ./ diff --git a/tools/doxify/doxify.sh b/tools/doxify/doxify.sh index 718ef8fd9a..17d8cbbe2c 100755 --- a/tools/doxify/doxify.sh +++ b/tools/doxify/doxify.sh @@ -39,4 +39,4 @@ for file in "$@"; do fi done -exit ${nwarnings} +exit "${nwarnings}" diff --git a/tools/fix_unused_public.py b/tools/fix_unused_public.py index 67cb5cfd1c..0b9ca035ec 100755 --- a/tools/fix_unused_public.py +++ b/tools/fix_unused_public.py @@ -128,7 +128,10 @@ def parse_file(fn): matches = re_use.findall(content) for m in matches: uses.append((m.strip(), ("*",))) - if m.strip() not in ("iso_c_binding", "f77_blas",): + if m.strip() not in ( + "iso_c_binding", + "f77_blas", + ): print("missing ONLY-clause: ", fn, m) matches = re_useonly.findall(content) diff --git a/tools/precommit/Dockerfile b/tools/precommit/Dockerfile index 1f0d1590ea..ba00fb47c0 100644 --- a/tools/precommit/Dockerfile +++ b/tools/precommit/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:20.04 +FROM ubuntu:22.04 # author: Ole Schuett diff --git a/tools/precommit/requirements.txt b/tools/precommit/requirements.txt index 936e585c3a..f2ac351ff6 100644 --- a/tools/precommit/requirements.txt +++ b/tools/precommit/requirements.txt @@ -1,17 +1,21 @@ appdirs==1.4.4 -attrs==20.1.0 -black==19.10b0 -click==7.1.2 +attrs==21.4.0 +black==22.3.0 +click==8.1.3 cmake-format==0.6.13 cmakelang==0.6.13 -Flask==1.1.2 -gunicorn==20.0.4 -itsdangerous==1.1.0 -Jinja2==2.11.3 -MarkupSafe==1.1.1 -pathspec==0.8.0 -regex==2020.7.14 +Flask==2.1.2 +gunicorn==20.1.0 +gyp==0.1 +itsdangerous==2.1.2 +Jinja2==3.1.2 +MarkupSafe==2.1.1 +mypy-extensions==0.4.3 +pathspec==0.9.0 +platformdirs==2.5.2 +regex==2022.4.24 six==1.16.0 -toml==0.10.1 -typed-ast==1.4.1 -Werkzeug==1.0.1 +toml==0.10.2 +tomli==2.0.1 +typed-ast==1.5.3 +Werkzeug==2.1.2 diff --git a/tools/prettify/prettify_cp2k/normalizeFortranFile.py b/tools/prettify/prettify_cp2k/normalizeFortranFile.py index e776743b00..bf8555de9c 100644 --- a/tools/prettify/prettify_cp2k/normalizeFortranFile.py +++ b/tools/prettify/prettify_cp2k/normalizeFortranFile.py @@ -150,7 +150,7 @@ class CharFilter(object): return self def __next__(self): - """ python 3 version""" + """python 3 version""" pos, char = next(self._it) if not self._instring and char == "!": raise StopIteration @@ -168,7 +168,7 @@ class CharFilter(object): return (pos, char) def next(self): - """ python 2 version""" + """python 2 version""" pos, char = self._it.next() if not self._instring and char == "!": raise StopIteration diff --git a/tools/regtesting/do_regtest.py b/tools/regtesting/do_regtest.py index 89c57199fc..059360c2ae 100755 --- a/tools/regtesting/do_regtest.py +++ b/tools/regtesting/do_regtest.py @@ -258,7 +258,7 @@ class Config: # ====================================================================================== class TestType: - """ Search pattern for result values, ie. a line in the TEST_TYPES file. """ + """Search pattern for result values, ie. a line in the TEST_TYPES file.""" def __init__(self, line: str): parts = line.rsplit("!", 1) @@ -285,7 +285,7 @@ class TestType: # ====================================================================================== class Unittest: - """ A unit test, ie. a standalone binary that matches '*_unittest.{cfg.version}'.""" + """A unit test, ie. a standalone binary that matches '*_unittest.{cfg.version}'.""" def __init__(self, name: str, workdir: Path): self.name = name @@ -294,7 +294,7 @@ class Unittest: # ====================================================================================== class Regtest: - """ A single input file to test, ie. a line in a TEST_FILES file. """ + """A single input file to test, ie. a line in a TEST_FILES file.""" def __init__(self, line: str, test_types: List[Optional[TestType]], workdir: Path): parts = line.split() @@ -311,7 +311,7 @@ class Regtest: # ====================================================================================== class Batch: - """ A directory of tests, ie. a line in the TEST_DIRS file. """ + """A directory of tests, ie. a line in the TEST_DIRS file.""" def __init__(self, line: str, cfg: Config): parts = line.split() diff --git a/tools/regtesting/print_environment.sh b/tools/regtesting/print_environment.sh index bc36b2f1c1..4d324f568a 100755 --- a/tools/regtesting/print_environment.sh +++ b/tools/regtesting/print_environment.sh @@ -34,7 +34,7 @@ if [[ -d ".git" ]]; then while IFS= read -r -d $'\0'; do submodule_basedir="${REPLY%/*}" submodule_hash=$(< "${submodule_basedir}/HEAD") - submodule_dir="${submodule_basedir#${modules_git_dir}}" + submodule_dir="${submodule_basedir#"${modules_git_dir}"}" submodule_sha+=("${submodule_dir}:${submodule_hash}") done < <(find "${modules_git_dir}" -name index -print0) fi diff --git a/tools/toolchain-spack/install_cp2k_toolchain.sh b/tools/toolchain-spack/install_cp2k_toolchain.sh index 7fabefd1dc..5f1b2480bb 100755 --- a/tools/toolchain-spack/install_cp2k_toolchain.sh +++ b/tools/toolchain-spack/install_cp2k_toolchain.sh @@ -2,6 +2,9 @@ # author: Tiziano Müller # SPDX-License-Identifier: MIT +# TODO: Review and if possible fix shellcheck errors. +# shellcheck disable=all + set -o errexit set -o nounset diff --git a/tools/toolchain/install_cp2k_toolchain.sh b/tools/toolchain/install_cp2k_toolchain.sh index 7f031229d9..723bf4d77e 100755 --- a/tools/toolchain/install_cp2k_toolchain.sh +++ b/tools/toolchain/install_cp2k_toolchain.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd -P)" diff --git a/tools/toolchain/scripts/common_vars.sh b/tools/toolchain/scripts/common_vars.sh index 7cab2779e8..e46db62a32 100644 --- a/tools/toolchain/scripts/common_vars.sh +++ b/tools/toolchain/scripts/common_vars.sh @@ -1,10 +1,7 @@ # Common variables used by the installation scripts # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all # shellcheck shell=bash # directories and files used by the installer diff --git a/tools/toolchain/scripts/generate_arch_files.sh b/tools/toolchain/scripts/generate_arch_files.sh index 38b4921425..9dee8446f5 100755 --- a/tools/toolchain/scripts/generate_arch_files.sh +++ b/tools/toolchain/scripts/generate_arch_files.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd -P)" diff --git a/tools/toolchain/scripts/get_openblas_arch.sh b/tools/toolchain/scripts/get_openblas_arch.sh index 1aaffc8eba..d066d56306 100755 --- a/tools/toolchain/scripts/get_openblas_arch.sh +++ b/tools/toolchain/scripts/get_openblas_arch.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")" && pwd -P)" diff --git a/tools/toolchain/scripts/parse_if.py b/tools/toolchain/scripts/parse_if.py index 492d853fde..de4d2d5046 100755 --- a/tools/toolchain/scripts/parse_if.py +++ b/tools/toolchain/scripts/parse_if.py @@ -61,9 +61,9 @@ class Parser: def ParseIf(self, string, switch): """ -ParseIf(string, switch) will replace in string recursively -occurance of IF_key(A|B) statements with A if val = True; -B if val = False + ParseIf(string, switch) will replace in string recursively + occurance of IF_key(A|B) statements with A if val = True; + B if val = False """ result = string while result.find("IF_" + switch[0]) > -1: @@ -72,9 +72,9 @@ B if val = False def ParseString(self, string): """ -ParseString(string) will parse in string recursively -all of IF_key(A|B) statements for all (key, val) pairs -in dictionary self.mSwitches + ParseString(string) will parse in string recursively + all of IF_key(A|B) statements for all (key, val) pairs + in dictionary self.mSwitches """ result = string for switch in self.mSwitches.items(): diff --git a/tools/toolchain/scripts/signal_trap.sh b/tools/toolchain/scripts/signal_trap.sh index bc2ea2e7ed..8fd7f94260 100644 --- a/tools/toolchain/scripts/signal_trap.sh +++ b/tools/toolchain/scripts/signal_trap.sh @@ -1,10 +1,7 @@ # signal trapping # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all # shellcheck shell=bash trap 'error_handler ${LINENO}' ERR diff --git a/tools/toolchain/scripts/stage0/install_cmake.sh b/tools/toolchain/scripts/stage0/install_cmake.sh index 464a8b6d00..8504f8d01f 100755 --- a/tools/toolchain/scripts/stage0/install_cmake.sh +++ b/tools/toolchain/scripts/stage0/install_cmake.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage0/install_gcc.sh b/tools/toolchain/scripts/stage0/install_gcc.sh index cfd46f36b3..362bcc6fb0 100755 --- a/tools/toolchain/scripts/stage0/install_gcc.sh +++ b/tools/toolchain/scripts/stage0/install_gcc.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage0/install_intel.sh b/tools/toolchain/scripts/stage0/install_intel.sh index d6bf1f8d8c..a297d38d2e 100755 --- a/tools/toolchain/scripts/stage0/install_intel.sh +++ b/tools/toolchain/scripts/stage0/install_intel.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=${0} SCRIPT_DIR="$(cd "$(dirname "${SCRIPT_NAME}")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage0/install_stage0.sh b/tools/toolchain/scripts/stage0/install_stage0.sh index 101ad7b61d..a398fdc0fa 100755 --- a/tools/toolchain/scripts/stage0/install_stage0.sh +++ b/tools/toolchain/scripts/stage0/install_stage0.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage0/install_gcc.sh ./scripts/stage0/install_intel.sh diff --git a/tools/toolchain/scripts/stage0/setup_buildtools.sh b/tools/toolchain/scripts/stage0/setup_buildtools.sh index b720c4256a..bcf8ad53f8 100755 --- a/tools/toolchain/scripts/stage0/setup_buildtools.sh +++ b/tools/toolchain/scripts/stage0/setup_buildtools.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "${SCRIPT_NAME}")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage1/install_intelmpi.sh b/tools/toolchain/scripts/stage1/install_intelmpi.sh index 4321184402..a9af4ab737 100755 --- a/tools/toolchain/scripts/stage1/install_intelmpi.sh +++ b/tools/toolchain/scripts/stage1/install_intelmpi.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage1/install_mpich.sh b/tools/toolchain/scripts/stage1/install_mpich.sh index 60fedd9d08..0abfb4fc32 100755 --- a/tools/toolchain/scripts/stage1/install_mpich.sh +++ b/tools/toolchain/scripts/stage1/install_mpich.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage1/install_openmpi.sh b/tools/toolchain/scripts/stage1/install_openmpi.sh index 422afb5f61..366f96c634 100755 --- a/tools/toolchain/scripts/stage1/install_openmpi.sh +++ b/tools/toolchain/scripts/stage1/install_openmpi.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage1/install_stage1.sh b/tools/toolchain/scripts/stage1/install_stage1.sh index 163e2fb0a1..e6d0e9fc21 100755 --- a/tools/toolchain/scripts/stage1/install_stage1.sh +++ b/tools/toolchain/scripts/stage1/install_stage1.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage1/install_mpich.sh ./scripts/stage1/install_openmpi.sh diff --git a/tools/toolchain/scripts/stage2/install_acml.sh b/tools/toolchain/scripts/stage2/install_acml.sh index 5978fdc7b1..7cd3a06f59 100755 --- a/tools/toolchain/scripts/stage2/install_acml.sh +++ b/tools/toolchain/scripts/stage2/install_acml.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage2/install_mathlibs.sh b/tools/toolchain/scripts/stage2/install_mathlibs.sh index 974d8b9c7d..b4ed3df22b 100755 --- a/tools/toolchain/scripts/stage2/install_mathlibs.sh +++ b/tools/toolchain/scripts/stage2/install_mathlibs.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage2/install_mkl.sh b/tools/toolchain/scripts/stage2/install_mkl.sh index 566c3d1acc..bd3bfd49c3 100755 --- a/tools/toolchain/scripts/stage2/install_mkl.sh +++ b/tools/toolchain/scripts/stage2/install_mkl.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage2/install_openblas.sh b/tools/toolchain/scripts/stage2/install_openblas.sh index 4dfd33fe91..c59f9f6ecc 100755 --- a/tools/toolchain/scripts/stage2/install_openblas.sh +++ b/tools/toolchain/scripts/stage2/install_openblas.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage2/install_stage2.sh b/tools/toolchain/scripts/stage2/install_stage2.sh index 7d757a4771..650c41f0d4 100755 --- a/tools/toolchain/scripts/stage2/install_stage2.sh +++ b/tools/toolchain/scripts/stage2/install_stage2.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage2/install_mathlibs.sh diff --git a/tools/toolchain/scripts/stage3/install_fftw.sh b/tools/toolchain/scripts/stage3/install_fftw.sh index dc59ea5dd8..0421665e6c 100755 --- a/tools/toolchain/scripts/stage3/install_fftw.sh +++ b/tools/toolchain/scripts/stage3/install_fftw.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage3/install_libint.sh b/tools/toolchain/scripts/stage3/install_libint.sh index b2df88a815..d7d0c3e41e 100755 --- a/tools/toolchain/scripts/stage3/install_libint.sh +++ b/tools/toolchain/scripts/stage3/install_libint.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage3/install_libxc.sh b/tools/toolchain/scripts/stage3/install_libxc.sh index d5cc3d26f1..263d569529 100755 --- a/tools/toolchain/scripts/stage3/install_libxc.sh +++ b/tools/toolchain/scripts/stage3/install_libxc.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage3/install_stage3.sh b/tools/toolchain/scripts/stage3/install_stage3.sh index 2fca08c06c..5a77901695 100755 --- a/tools/toolchain/scripts/stage3/install_stage3.sh +++ b/tools/toolchain/scripts/stage3/install_stage3.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage3/install_fftw.sh ./scripts/stage3/install_libint.sh diff --git a/tools/toolchain/scripts/stage4/install_cosma.sh b/tools/toolchain/scripts/stage4/install_cosma.sh index e2be084d5c..4163b0c436 100755 --- a/tools/toolchain/scripts/stage4/install_cosma.sh +++ b/tools/toolchain/scripts/stage4/install_cosma.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage4/install_libxsmm.sh b/tools/toolchain/scripts/stage4/install_libxsmm.sh index 8244d410c1..91db69274b 100755 --- a/tools/toolchain/scripts/stage4/install_libxsmm.sh +++ b/tools/toolchain/scripts/stage4/install_libxsmm.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage4/install_scalapack.sh b/tools/toolchain/scripts/stage4/install_scalapack.sh index 60f4d71aec..db49b8b842 100755 --- a/tools/toolchain/scripts/stage4/install_scalapack.sh +++ b/tools/toolchain/scripts/stage4/install_scalapack.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage4/install_stage4.sh b/tools/toolchain/scripts/stage4/install_stage4.sh index 718c6c0034..b73e6462de 100755 --- a/tools/toolchain/scripts/stage4/install_stage4.sh +++ b/tools/toolchain/scripts/stage4/install_stage4.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage4/install_libxsmm.sh ./scripts/stage4/install_scalapack.sh diff --git a/tools/toolchain/scripts/stage5/install_elpa.sh b/tools/toolchain/scripts/stage5/install_elpa.sh index 058b77d6f3..d63debf1da 100755 --- a/tools/toolchain/scripts/stage5/install_elpa.sh +++ b/tools/toolchain/scripts/stage5/install_elpa.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage5/install_pexsi.sh b/tools/toolchain/scripts/stage5/install_pexsi.sh index 049bd8aa1d..c70ded1f69 100755 --- a/tools/toolchain/scripts/stage5/install_pexsi.sh +++ b/tools/toolchain/scripts/stage5/install_pexsi.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage5/install_ptscotch.sh b/tools/toolchain/scripts/stage5/install_ptscotch.sh index c3b0b2856c..06d7894b6f 100755 --- a/tools/toolchain/scripts/stage5/install_ptscotch.sh +++ b/tools/toolchain/scripts/stage5/install_ptscotch.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage5/install_stage5.sh b/tools/toolchain/scripts/stage5/install_stage5.sh index d2cd859291..b7f4e17e3f 100755 --- a/tools/toolchain/scripts/stage5/install_stage5.sh +++ b/tools/toolchain/scripts/stage5/install_stage5.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage5/install_elpa.sh ./scripts/stage5/install_ptscotch.sh diff --git a/tools/toolchain/scripts/stage5/install_superlu.sh b/tools/toolchain/scripts/stage5/install_superlu.sh index c37f18633e..7b63ee7840 100755 --- a/tools/toolchain/scripts/stage5/install_superlu.sh +++ b/tools/toolchain/scripts/stage5/install_superlu.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage6/install_gsl.sh b/tools/toolchain/scripts/stage6/install_gsl.sh index 68120a252f..c5ec449f90 100755 --- a/tools/toolchain/scripts/stage6/install_gsl.sh +++ b/tools/toolchain/scripts/stage6/install_gsl.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage6/install_plumed.sh b/tools/toolchain/scripts/stage6/install_plumed.sh index 18319cb373..3ee4639b50 100755 --- a/tools/toolchain/scripts/stage6/install_plumed.sh +++ b/tools/toolchain/scripts/stage6/install_plumed.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage6/install_quip.sh b/tools/toolchain/scripts/stage6/install_quip.sh index 37ae2d54ac..69c85917cd 100755 --- a/tools/toolchain/scripts/stage6/install_quip.sh +++ b/tools/toolchain/scripts/stage6/install_quip.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage6/install_stage6.sh b/tools/toolchain/scripts/stage6/install_stage6.sh index 738e07ffff..5fcc6124e4 100755 --- a/tools/toolchain/scripts/stage6/install_stage6.sh +++ b/tools/toolchain/scripts/stage6/install_stage6.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage6/install_quip.sh ./scripts/stage6/install_gsl.sh diff --git a/tools/toolchain/scripts/stage7/install_hdf5.sh b/tools/toolchain/scripts/stage7/install_hdf5.sh index 11868cd519..fac7246dda 100755 --- a/tools/toolchain/scripts/stage7/install_hdf5.sh +++ b/tools/toolchain/scripts/stage7/install_hdf5.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage7/install_libvdwxc.sh b/tools/toolchain/scripts/stage7/install_libvdwxc.sh index 1a8a20429a..40e576f684 100755 --- a/tools/toolchain/scripts/stage7/install_libvdwxc.sh +++ b/tools/toolchain/scripts/stage7/install_libvdwxc.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage7/install_libvori.sh b/tools/toolchain/scripts/stage7/install_libvori.sh index 3e45eee5b7..1dc71aadbf 100755 --- a/tools/toolchain/scripts/stage7/install_libvori.sh +++ b/tools/toolchain/scripts/stage7/install_libvori.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all # shellcheck disable=SC1090 diff --git a/tools/toolchain/scripts/stage7/install_spglib.sh b/tools/toolchain/scripts/stage7/install_spglib.sh index 77ae69c58b..a9ab212f84 100755 --- a/tools/toolchain/scripts/stage7/install_spglib.sh +++ b/tools/toolchain/scripts/stage7/install_spglib.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage7/install_stage7.sh b/tools/toolchain/scripts/stage7/install_stage7.sh index 3981342755..c42bcf6776 100755 --- a/tools/toolchain/scripts/stage7/install_stage7.sh +++ b/tools/toolchain/scripts/stage7/install_stage7.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage7/install_hdf5.sh ./scripts/stage7/install_libvdwxc.sh diff --git a/tools/toolchain/scripts/stage8/install_sirius.sh b/tools/toolchain/scripts/stage8/install_sirius.sh index 5988539cb2..f114e67464 100755 --- a/tools/toolchain/scripts/stage8/install_sirius.sh +++ b/tools/toolchain/scripts/stage8/install_sirius.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage8/install_spfft.sh b/tools/toolchain/scripts/stage8/install_spfft.sh index e4e16885a0..760bffe038 100755 --- a/tools/toolchain/scripts/stage8/install_spfft.sh +++ b/tools/toolchain/scripts/stage8/install_spfft.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage8/install_spla.sh b/tools/toolchain/scripts/stage8/install_spla.sh index 76b4b999a2..7947897290 100755 --- a/tools/toolchain/scripts/stage8/install_spla.sh +++ b/tools/toolchain/scripts/stage8/install_spla.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all [ "${BASH_SOURCE[0]}" ] && SCRIPT_NAME="${BASH_SOURCE[0]}" || SCRIPT_NAME=$0 SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_NAME")/.." && pwd -P)" diff --git a/tools/toolchain/scripts/stage8/install_stage8.sh b/tools/toolchain/scripts/stage8/install_stage8.sh index f0ef5a4266..bcfcaf1256 100755 --- a/tools/toolchain/scripts/stage8/install_stage8.sh +++ b/tools/toolchain/scripts/stage8/install_stage8.sh @@ -1,10 +1,7 @@ #!/bin/bash -e # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all ./scripts/stage8/install_spfft.sh ./scripts/stage8/install_spla.sh diff --git a/tools/toolchain/scripts/tool_kit.sh b/tools/toolchain/scripts/tool_kit.sh index f02969156d..4949b38bff 100644 --- a/tools/toolchain/scripts/tool_kit.sh +++ b/tools/toolchain/scripts/tool_kit.sh @@ -1,10 +1,7 @@ # A set of tools used in the toolchain installer, intended to be used # TODO: Review and if possible fix shellcheck errors. -# shellcheck disable=SC1003,SC1035,SC1083,SC1090 -# shellcheck disable=SC2001,SC2002,SC2005,SC2016,SC2091,SC2034,SC2046,SC2086,SC2089,SC2090 -# shellcheck disable=SC2124,SC2129,SC2144,SC2153,SC2154,SC2155,SC2163,SC2164,SC2166 -# shellcheck disable=SC2235,SC2237 +# shellcheck disable=all # shellcheck shell=bash # by sourcing this file inside other scripts.