From 25b517f1223ade4a4a1f1db89f2cec91a1aa7d41 Mon Sep 17 00:00:00 2001 From: Abdessattar Sassi <457645+abdes@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:42:01 +0400 Subject: [PATCH] chore: fix typo in file header --- CMakeLists.txt | 2 +- cmake/AsapTargets.cmake | 2 +- cmake/BuildHelpers.cmake | 2 +- cmake/CPM.cmake | 2 +- cmake/CodeCoverage.cmake | 2 +- cmake/CompileDefinitions.cmake | 2 +- cmake/CompileOptions.cmake | 2 +- cmake/ComponentInstall.cmake | 2 +- cmake/DoxGeneration.cmake | 2 +- cmake/FasterBuild.cmake | 2 +- cmake/FindSphinx.cmake | 2 +- cmake/FindValgrind.cmake | 2 +- cmake/GoogleSanitizers.cmake | 2 +- cmake/LanguageStandards.cmake | 2 +- cmake/ListTargets.cmake | 2 +- cmake/LogHelpers.cmake | 2 +- cmake/ResetInitialCompilerOptions.cmake | 2 +- cmake/SphinxGeneration.cmake | 2 +- cmake/TestTargets.cmake | 2 +- cmake/Valgrind.cmake | 2 +- cmake/scripts/standard-version-updater.js | 74 +++++++++++------------ templates/version.h.in | 2 +- third_party/CMakeLists.txt | 2 +- tools/version-info/CMakeLists.txt | 2 +- tools/version-info/src/main.cpp.in | 2 +- 25 files changed, 61 insertions(+), 61 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f9816757..b50eec24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/AsapTargets.cmake b/cmake/AsapTargets.cmake index 2c5de6f7..9f34f681 100644 --- a/cmake/AsapTargets.cmake +++ b/cmake/AsapTargets.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/BuildHelpers.cmake b/cmake/BuildHelpers.cmake index abcd7c5e..c8a34924 100644 --- a/cmake/BuildHelpers.cmake +++ b/cmake/BuildHelpers.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/CPM.cmake b/cmake/CPM.cmake index bad968d0..668d2200 100644 --- a/cmake/CPM.cmake +++ b/cmake/CPM.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/CodeCoverage.cmake b/cmake/CodeCoverage.cmake index 43a22cd7..2d62d2e2 100644 --- a/cmake/CodeCoverage.cmake +++ b/cmake/CodeCoverage.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/CompileDefinitions.cmake b/cmake/CompileDefinitions.cmake index 5bc65430..9e5fa907 100644 --- a/cmake/CompileDefinitions.cmake +++ b/cmake/CompileDefinitions.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/CompileOptions.cmake b/cmake/CompileOptions.cmake index 7a53746b..f8034346 100644 --- a/cmake/CompileOptions.cmake +++ b/cmake/CompileOptions.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/ComponentInstall.cmake b/cmake/ComponentInstall.cmake index 680a489f..f38205c1 100644 --- a/cmake/ComponentInstall.cmake +++ b/cmake/ComponentInstall.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/DoxGeneration.cmake b/cmake/DoxGeneration.cmake index 38d36662..3c161180 100644 --- a/cmake/DoxGeneration.cmake +++ b/cmake/DoxGeneration.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/FasterBuild.cmake b/cmake/FasterBuild.cmake index a1bd795b..8586eb33 100644 --- a/cmake/FasterBuild.cmake +++ b/cmake/FasterBuild.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/FindSphinx.cmake b/cmake/FindSphinx.cmake index 1e63e314..727b59f3 100644 --- a/cmake/FindSphinx.cmake +++ b/cmake/FindSphinx.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/FindValgrind.cmake b/cmake/FindValgrind.cmake index f3af27c1..3d0408b2 100644 --- a/cmake/FindValgrind.cmake +++ b/cmake/FindValgrind.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/GoogleSanitizers.cmake b/cmake/GoogleSanitizers.cmake index 0a616ccb..30b59c10 100644 --- a/cmake/GoogleSanitizers.cmake +++ b/cmake/GoogleSanitizers.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/LanguageStandards.cmake b/cmake/LanguageStandards.cmake index 05943bfa..0f7b4c58 100644 --- a/cmake/LanguageStandards.cmake +++ b/cmake/LanguageStandards.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/ListTargets.cmake b/cmake/ListTargets.cmake index 6be3d3c7..43017722 100644 --- a/cmake/ListTargets.cmake +++ b/cmake/ListTargets.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/LogHelpers.cmake b/cmake/LogHelpers.cmake index 43e3b3c6..3321507c 100644 --- a/cmake/LogHelpers.cmake +++ b/cmake/LogHelpers.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/ResetInitialCompilerOptions.cmake b/cmake/ResetInitialCompilerOptions.cmake index 97ba6fb0..2fee0b0f 100644 --- a/cmake/ResetInitialCompilerOptions.cmake +++ b/cmake/ResetInitialCompilerOptions.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/SphinxGeneration.cmake b/cmake/SphinxGeneration.cmake index 671243a0..8387d71f 100644 --- a/cmake/SphinxGeneration.cmake +++ b/cmake/SphinxGeneration.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/TestTargets.cmake b/cmake/TestTargets.cmake index 08493879..7d22e39c 100644 --- a/cmake/TestTargets.cmake +++ b/cmake/TestTargets.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/Valgrind.cmake b/cmake/Valgrind.cmake index cdb52f19..17a307dd 100644 --- a/cmake/Valgrind.cmake +++ b/cmake/Valgrind.cmake @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/cmake/scripts/standard-version-updater.js b/cmake/scripts/standard-version-updater.js index a5f97a20..5eacb363 100644 --- a/cmake/scripts/standard-version-updater.js +++ b/cmake/scripts/standard-version-updater.js @@ -1,6 +1,6 @@ //===----------------------------------------------------------------------===// // Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -// copy at https://opensource.org/licenses/BSD-3-Clause). +// copy at https://opensource.org/licenses/BSD-3-Clause. // SPDX-License-Identifier: BSD-3-Clause //===----------------------------------------------------------------------===// @@ -42,58 +42,58 @@ const minor_rex = /set\(META_VERSION_MINOR\s+\"(\d+)\"\)/; const patch_rex = /set\(META_VERSION_PATCH\s+\"(\d+)\"\)/; module.exports.readVersion = - function(contents) { - var major = null, minor = null, patch = null; + function (contents) { + var major = null, minor = null, patch = null; - const lines = contents.split(/\r?\n/); - for (let index in lines) { - let line = lines[index]; - var match = null; - if (major == null) { - var match = major_rex.exec(line); - if (match != null) { - major = match[1]; + const lines = contents.split(/\r?\n/); + for (let index in lines) { + let line = lines[index]; + var match = null; + if (major == null) { + var match = major_rex.exec(line); + if (match != null) { + major = match[1]; + } } - } - if (match == null && minor == null) { - var match = minor_rex.exec(line); - if (match != null) { - minor = match[1]; + if (match == null && minor == null) { + var match = minor_rex.exec(line); + if (match != null) { + minor = match[1]; + } } - } - if (match == null && patch == null) { - var match = patch_rex.exec(line); - if (match != null) { - patch = match[1]; + if (match == null && patch == null) { + var match = patch_rex.exec(line); + if (match != null) { + patch = match[1]; + } } - } - if (major != null && minor != null && patch != null) break; - }; + if (major != null && minor != null && patch != null) break; + }; - if (major == null) - console.error( + if (major == null) + console.error( 'Your CmakeLists.txt is missing META_VERSION_MAJOR variable!'); - if (minor == null) - console.error( + if (minor == null) + console.error( 'Your CmakeLists.txt is missing META_VERSION_MINOR variable!'); - if (patch == null) - console.error( + if (patch == null) + console.error( 'Your CmakeLists.txt is missing META_VERSION_PATCH variable!'); - return major + '.' + minor + '.' + patch; -} + return major + '.' + minor + '.' + patch; + } - module.exports.writeVersion = function(contents, version) { +module.exports.writeVersion = function (contents, version) { var [major, minor, patch] = version.split('.'); var newContents = []; const lines = contents.split(/\r?\n/); lines.forEach(line => { var newLine = - line.replace(major_rex, 'set(META_VERSION_MAJOR "' + major + '")') - .replace(minor_rex, 'set(META_VERSION_MINOR "' + minor + '")') - .replace( - patch_rex, 'set(META_VERSION_PATCH "' + patch + '")'); + line.replace(major_rex, 'set(META_VERSION_MAJOR "' + major + '")') + .replace(minor_rex, 'set(META_VERSION_MINOR "' + minor + '")') + .replace( + patch_rex, 'set(META_VERSION_PATCH "' + patch + '")'); newContents.push(newLine); }); diff --git a/templates/version.h.in b/templates/version.h.in index 23cfaba4..f55fd998 100644 --- a/templates/version.h.in +++ b/templates/version.h.in @@ -1,6 +1,6 @@ //===----------------------------------------------------------------------===// // Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -// copy at https://opensource.org/licenses/BSD-3-Clause). +// copy at https://opensource.org/licenses/BSD-3-Clause. // SPDX-License-Identifier: BSD-3-Clause //===----------------------------------------------------------------------===// diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 5c62d075..60e75300 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -1,6 +1,6 @@ # ===-----------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===-----------------------------------------------------------------------===# diff --git a/tools/version-info/CMakeLists.txt b/tools/version-info/CMakeLists.txt index 383ab7a0..78075c38 100644 --- a/tools/version-info/CMakeLists.txt +++ b/tools/version-info/CMakeLists.txt @@ -1,6 +1,6 @@ # ===------------------------------------------------------------------------===# # Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -# copy at https://opensource.org/licenses/BSD-3-Clause). +# copy at https://opensource.org/licenses/BSD-3-Clause. # SPDX-License-Identifier: BSD-3-Clause # ===------------------------------------------------------------------------===# diff --git a/tools/version-info/src/main.cpp.in b/tools/version-info/src/main.cpp.in index e80f1ec6..bae509c7 100644 --- a/tools/version-info/src/main.cpp.in +++ b/tools/version-info/src/main.cpp.in @@ -1,6 +1,6 @@ //===----------------------------------------------------------------------===// // Distributed under the 3-Clause BSD License. See accompanying file LICENSE or -// copy at https://opensource.org/licenses/BSD-3-Clause). +// copy at https://opensource.org/licenses/BSD-3-Clause. // SPDX-License-Identifier: BSD-3-Clause //===----------------------------------------------------------------------===//