diff --git a/.gitignore b/.gitignore index 6d7cc5f7b1314ebcd9fd88497b622ed043d8028b..c9d70e52730639d6918e63e1f46544805eecef91 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2016-2022 CERN and the Corryvreckan authors +# SPDX-License-Identifier: CC0-1.0 + # ignore build and install directories build/ bin/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 76863dc866b3a4a374021c4e5e77b45505ce7471..1732d42cc9ccf54a7dee39b746df2d68a5201bf4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # CMake file for the Corryvreckan framework CMAKE_MINIMUM_REQUIRED(VERSION 3.4.3 FATAL_ERROR) IF(COMMAND CMAKE_POLICY) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1f7ecbf1b3c66f54c745928f6c9245401b2d4b42..2a318f779236441db47cf772a547afa81889080d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,9 @@ +--- +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: CC-BY-4.0 +title: "How to contribute" +--- + # How to contribute Thanks for considering to contribute to Corryvreckan. Any type of merge request, ranging from small bugfixes, improvements to the documentation to entirely new functionality, is much appreciated. We, the maintainers, will try to our best to look carefully at every merge request. diff --git a/README.md b/README.md index 7a1ec61913272eadf5359bf4b28c633e2b9ba8a0..598c699acd90b9dc38c9876bc59c2680c58da58d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +<!-- +SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +SPDX-License-Identifier: CC-BY-4.0 +--> +  # Corryvreckan diff --git a/cmake/CPackConfig.cmake b/cmake/CPackConfig.cmake index e38014e33df5b34e93c8599035dca1daf95b27bb..98050097872a43867fad63b744af97115e99fbe8 100644 --- a/cmake/CPackConfig.cmake +++ b/cmake/CPackConfig.cmake @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # Packaging configuration SET(CPACK_PACKAGE_NAME "corryvreckan") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The Maelstrom for Your Test Beam Data") diff --git a/cmake/compiler-flag-checks.cmake b/cmake/compiler-flag-checks.cmake index c9cc1177931f86ad32f9ff186c21b1f7a1b978be..d4baa950fa2683dd0518dddb6206c8aa1328fc39 100644 --- a/cmake/compiler-flag-checks.cmake +++ b/cmake/compiler-flag-checks.cmake @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # Check for supported flags and remove unsupported warnings INCLUDE(CheckCXXCompilerFlag) FOREACH( FLAG ${COMPILER_FLAGS} ) diff --git a/cmake/corryvreckan.cmake b/cmake/corryvreckan.cmake index 68e74c7eef3be03d9215613e521dbb690f1d0825..93e65e9cd1f3531d5293198645993f0d8b40c7a4 100644 --- a/cmake/corryvreckan.cmake +++ b/cmake/corryvreckan.cmake @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # For every module, build a separate library to be loaded by corryvreckan core MACRO(corryvreckan_enable_default val) # Get the name of the module diff --git a/cmake/setup.cmake.sh b/cmake/setup.cmake.sh index 60180bf5f7a0b377f39125156c2566191d076799..df493d016edc131b211d67e9bde22cec4f3b3567 100644 --- a/cmake/setup.cmake.sh +++ b/cmake/setup.cmake.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + Corryvreckan_version="@CORRYVRECKAN_VERSION@" # Dependencies diff --git a/cmake/tools.cmake b/cmake/tools.cmake index ccef1b4123688042b79823f65e41a13dc403ae05..ac7c27e2d9f999bc65e7ffd6d92ed3aa332ad443 100644 --- a/cmake/tools.cmake +++ b/cmake/tools.cmake @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # Retrieve the project version string from git describe FUNCTION(get_version PROJECT_VERSION) # Check if this is a source tarball build diff --git a/etc/README.md b/etc/README.md index 418a718a43f74427115076602e9a76b5181c38bc..21a871c93bcbc10840fc393e80b7282c1da6beed 100644 --- a/etc/README.md +++ b/etc/README.md @@ -1,3 +1,8 @@ +<!-- +SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +SPDX-License-Identifier: CC-BY-4.0 +--> + # Scripts ## addModule.sh diff --git a/etc/addModule.sh b/etc/addModule.sh index 3c9c0d4ead8c5291b34331789ea75dec7548fd4e..fd153cf9be3c1350c3bf8ef3134e4e035b62b308 100755 --- a/etc/addModule.sh +++ b/etc/addModule.sh @@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + echo -e "\nPreparing code basis for a new module:\n" # Ask for module name: diff --git a/etc/docker/Dockerfile b/etc/docker/Dockerfile index e1f5d988cdbd4474277f7ad1e67ee4424b75799e..64333ab834b65424930def92e8353839fb51caaf 100644 --- a/etc/docker/Dockerfile +++ b/etc/docker/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2018-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + FROM gitlab-registry.cern.ch/corryvreckan/corryvreckan/corryvreckan-deps:latest MAINTAINER Simon Spannagel <simon.spannagel@cern.ch> diff --git a/etc/docker/Dockerfile.deps b/etc/docker/Dockerfile.deps index a890904d06be3ac9d361a639f977af62e2a24252..9399c22ac3edc27c29ae9a2982576dfa05d24fbe 100644 --- a/etc/docker/Dockerfile.deps +++ b/etc/docker/Dockerfile.deps @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2018-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + FROM ubuntu:latest MAINTAINER Simon Spannagel <simon.spannagel@cern.ch> diff --git a/etc/setup_lxplus.sh b/etc/setup_lxplus.sh index 02cd8467808951a6ad2c56eb0b238c15ef36b500..b3e4af4f153684567e1f0deaa1cacf68551cf197 100644 --- a/etc/setup_lxplus.sh +++ b/etc/setup_lxplus.sh @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2023 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + if [ ! -d "/cvmfs/clicdp.cern.ch" ]; then echo "CVMFS not available" return diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 65312146be011edf1640229aa7ddcdc209ace3d8..aaa4a6e401f23999f8d26ed1915c6b9a4b607146 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2022 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # Include the dependencies INCLUDE_DIRECTORIES(SYSTEM ${CORRYVRECKAN_DEPS_INCLUDE_DIRS}) diff --git a/src/exec/CMakeLists.txt b/src/exec/CMakeLists.txt index c4c7d95e61eebbea1aba2525e38065ecd63225e5..7a8475a830ccac6210a95217947878ca482bb4e5 100644 --- a/src/exec/CMakeLists.txt +++ b/src/exec/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2022 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # include dependencies INCLUDE_DIRECTORIES(SYSTEM ${CORRYVRECKAN_DEPS_INCLUDE_DIRS}) diff --git a/src/exec/corry.cpp b/src/exec/corry.cpp index 90a647887763a1f2b527646c7c4873a7e27728f0..2d2508ce2996be77f8377da52bd79a0c0ed27623 100644 --- a/src/exec/corry.cpp +++ b/src/exec/corry.cpp @@ -6,6 +6,7 @@ * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an * Intergovernmental Organization or submit itself to any jurisdiction. + * SPDX-License-Identifier: MIT */ #include <atomic> diff --git a/src/objects/CMakeLists.txt b/src/objects/CMakeLists.txt index a8464406c5d5f3ccaf8a257804d1392c126b1bb6..71e156aa1096eae39faaa5fa0e72fce4bba1546e 100644 --- a/src/objects/CMakeLists.txt +++ b/src/objects/CMakeLists.txt @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2017-2022 CERN and the Corryvreckan authors +# SPDX-License-Identifier: MIT + # Include the standard dependencies INCLUDE_DIRECTORIES(SYSTEM ${CORRYVRECKAN_DEPS_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(SYSTEM ${GBL_INCLUDE_DIRS}) diff --git a/src/tools/cuts.h b/src/tools/cuts.h index 02296a9c6aa871836e677626eb5815a4348a86a7..dd7591bf47fd52d4d8260a2a3b457822a72d08f3 100644 --- a/src/tools/cuts.h +++ b/src/tools/cuts.h @@ -6,6 +6,7 @@ * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an * Intergovernmental Organization or submit itself to any jurisdiction. + * SPDX-License-Identifier: MIT */ #ifndef CORRYVRECKAN_CUTS_H diff --git a/src/tools/kdtree.h b/src/tools/kdtree.h index 2b796d94e42036c6f6db979fdabfa2d4332c81bb..0a9924bfd13daa3e22729a45a3da4c839fb6dffc 100644 --- a/src/tools/kdtree.h +++ b/src/tools/kdtree.h @@ -6,6 +6,7 @@ * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an * Intergovernmental Organization or submit itself to any jurisdiction. + * SPDX-License-Identifier: MIT */ #ifndef CORRYVRECKAN_KDTREE__H