From e26719a0ad05495384b3b533029c2ca28f61373b Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Sat, 2 Nov 2024 14:09:18 -0500 Subject: [PATCH] Set copyright year in generated files --- CMakeLists.txt | 3 +++ cmake/HPX_SetupNanobench.cmake | 6 ++++++ cmake/templates/HPXCacheVariables.cmake.in | 2 +- cmake/templates/HPXConfig.cmake.in | 1 + cmake/templates/HPXMacros.cmake.in | 1 + cmake/templates/cmake_variables.rst.in | 1 + cmake/templates/compatibility_header.hpp.in | 2 +- cmake/templates/conf.py.in | 1 + cmake/templates/config_defines_entries_for_modules.cpp.in | 1 + cmake/templates/config_defines_strings.hpp.in | 1 + cmake/templates/global_module_header.hpp.in | 2 +- cmake/templates/hpx_application.pc.in | 1 + cmake/templates/hpx_component.pc.in | 1 + cmake/templates/hpxcxx.in | 1 + cmake/templates/hpxdep_index.html.in | 2 +- cmake/templates/hpxrun.py.in | 1 + cmake/templates/modules_enabled.hpp.in | 2 +- libs/core/async_cuda/tests/unit/saxpy.cu | 2 +- libs/core/testing/src/performance.cpp | 4 ++-- 19 files changed, 27 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8a829c3bd46..943d75d0bc52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,9 @@ if(HPX_WITH_INSTALLED_VERSION) return() endif() +# ############################################################################## +string(TIMESTAMP HPX_COPYRIGHT_YEAR "%Y") + # ############################################################################## # Build all of HPX # ############################################################################## diff --git a/cmake/HPX_SetupNanobench.cmake b/cmake/HPX_SetupNanobench.cmake index 14ba9880a209..431e0ea9bf18 100644 --- a/cmake/HPX_SetupNanobench.cmake +++ b/cmake/HPX_SetupNanobench.cmake @@ -1,3 +1,9 @@ +# Copyright (c) 2024 Hartmut Kaiser +# +# SPDX-License-Identifier: BSL-1.0 +# Distributed under the Boost Software License, Version 1.0. (See accompanying +# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + include(FetchContent) fetchcontent_declare( diff --git a/cmake/templates/HPXCacheVariables.cmake.in b/cmake/templates/HPXCacheVariables.cmake.in index d8d62649ba5a..2b21dad55508 100644 --- a/cmake/templates/HPXCacheVariables.cmake.in +++ b/cmake/templates/HPXCacheVariables.cmake.in @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Ste||ar Group +# Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group # # SPDX-License-Identifier: BSL-1.0 # Distributed under the Boost Software License, Version 1.0. (See accompanying diff --git a/cmake/templates/HPXConfig.cmake.in b/cmake/templates/HPXConfig.cmake.in index 59f4d2cad8b5..5876363ef3d4 100644 --- a/cmake/templates/HPXConfig.cmake.in +++ b/cmake/templates/HPXConfig.cmake.in @@ -1,3 +1,4 @@ +# Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group # Copyright (c) 2014 Thomas Heller # Copyright (c) 2015 Andreas Schaefer # diff --git a/cmake/templates/HPXMacros.cmake.in b/cmake/templates/HPXMacros.cmake.in index a3dd7a5f8e13..f670efd96c7e 100644 --- a/cmake/templates/HPXMacros.cmake.in +++ b/cmake/templates/HPXMacros.cmake.in @@ -1,3 +1,4 @@ +# Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group # Copyright (c) 2014 Thomas Heller # Copyright (c) 2015 Andreas Schaefer # Copyright (c) 2019 Patrick Diehl diff --git a/cmake/templates/cmake_variables.rst.in b/cmake/templates/cmake_variables.rst.in index 2a6752e668e9..b199673370c1 100644 --- a/cmake/templates/cmake_variables.rst.in +++ b/cmake/templates/cmake_variables.rst.in @@ -1,4 +1,5 @@ .. + Copyright (C) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group Copyright (C) 2018 Mikael Simberg Copyright (C) 2014 Thomas Heller diff --git a/cmake/templates/compatibility_header.hpp.in b/cmake/templates/compatibility_header.hpp.in index b024d8191f44..2372318ba49b 100644 --- a/cmake/templates/compatibility_header.hpp.in +++ b/cmake/templates/compatibility_header.hpp.in @@ -1,4 +1,4 @@ -// Copyright (c) 2020-2022 STE||AR Group +// Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying diff --git a/cmake/templates/conf.py.in b/cmake/templates/conf.py.in index 29e68c51e421..842fcc524771 100644 --- a/cmake/templates/conf.py.in +++ b/cmake/templates/conf.py.in @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # +# Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group # Copyright (c) 2018 Mikael Simberg # # SPDX-License-Identifier: BSL-1.0 diff --git a/cmake/templates/config_defines_entries_for_modules.cpp.in b/cmake/templates/config_defines_entries_for_modules.cpp.in index aa791399279f..b8fd0a3c335a 100644 --- a/cmake/templates/config_defines_entries_for_modules.cpp.in +++ b/cmake/templates/config_defines_entries_for_modules.cpp.in @@ -1,3 +1,4 @@ +// Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group // Copyright (c) 2017-2022 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 diff --git a/cmake/templates/config_defines_strings.hpp.in b/cmake/templates/config_defines_strings.hpp.in index e67c2e64539a..562452c66257 100644 --- a/cmake/templates/config_defines_strings.hpp.in +++ b/cmake/templates/config_defines_strings.hpp.in @@ -1,3 +1,4 @@ +// Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group // Copyright (c) 2017-2019 Hartmut Kaiser // // SPDX-License-Identifier: BSL-1.0 diff --git a/cmake/templates/global_module_header.hpp.in b/cmake/templates/global_module_header.hpp.in index 7da46f9307dc..d22d90dcd142 100644 --- a/cmake/templates/global_module_header.hpp.in +++ b/cmake/templates/global_module_header.hpp.in @@ -1,4 +1,4 @@ -// Copyright (c) 2019-2022 STE||AR Group +// Copyright (c) 2019-@HPX_COPYRIGHT_YEAR@ STE||AR Group // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software License, Version 1.0. (See accompanying diff --git a/cmake/templates/hpx_application.pc.in b/cmake/templates/hpx_application.pc.in index f7b32d7c3e4a..0263543fd95c 100644 --- a/cmake/templates/hpx_application.pc.in +++ b/cmake/templates/hpx_application.pc.in @@ -1,3 +1,4 @@ +# Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group # Copyright (c) 2018 Christopher Hinz # Copyright (c) 2014 Thomas Heller # Copyright (c) 2012 Bryce Adelstein-Lelbach diff --git a/cmake/templates/hpx_component.pc.in b/cmake/templates/hpx_component.pc.in index 38260fc0e3e3..5981c240b8b0 100644 --- a/cmake/templates/hpx_component.pc.in +++ b/cmake/templates/hpx_component.pc.in @@ -1,3 +1,4 @@ +# Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group # Copyright (c) 2018 Christopher Hinz # Copyright (c) 2014 Thomas Heller # Copyright (c) 2012 Bryce Adelstein-Lelbach diff --git a/cmake/templates/hpxcxx.in b/cmake/templates/hpxcxx.in index eb57fd69d4c0..cf21719761e8 100755 --- a/cmake/templates/hpxcxx.in +++ b/cmake/templates/hpxcxx.in @@ -1,5 +1,6 @@ #! @Python_EXECUTABLE@ # +# Copyright (c) 2020-@HPX_COPYRIGHT_YEAR@ STE||AR Group # Copyright (c) 2014 Steven R. Brandt # # SPDX-License-Identifier: BSL-1.0 diff --git a/cmake/templates/hpxdep_index.html.in b/cmake/templates/hpxdep_index.html.in index 706d45d6b427..a3d3c772536e 100644 --- a/cmake/templates/hpxdep_index.html.in +++ b/cmake/templates/hpxdep_index.html.in @@ -1,5 +1,5 @@