Skip to content

Commit

Permalink
chore: fix typo in file header
Browse files Browse the repository at this point in the history
  • Loading branch information
abdes committed Oct 21, 2024
1 parent c485dbf commit 25b517f
Show file tree
Hide file tree
Showing 25 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/AsapTargets.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/BuildHelpers.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/CPM.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/CompileDefinitions.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/CompileOptions.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/ComponentInstall.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/DoxGeneration.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/FasterBuild.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindSphinx.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindValgrind.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/GoogleSanitizers.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/LanguageStandards.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/ListTargets.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/LogHelpers.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/ResetInitialCompilerOptions.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/SphinxGeneration.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/TestTargets.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion cmake/Valgrind.cmake
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
74 changes: 37 additions & 37 deletions cmake/scripts/standard-version-updater.js
Original file line number Diff line number Diff line change
@@ -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
//===----------------------------------------------------------------------===//

Expand Down Expand Up @@ -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);
});

Expand Down
2 changes: 1 addition & 1 deletion templates/version.h.in
Original file line number Diff line number Diff line change
@@ -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
//===----------------------------------------------------------------------===//

Expand Down
2 changes: 1 addition & 1 deletion third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
# ===-----------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion tools/version-info/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
# ===------------------------------------------------------------------------===#

Expand Down
2 changes: 1 addition & 1 deletion tools/version-info/src/main.cpp.in
Original file line number Diff line number Diff line change
@@ -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
//===----------------------------------------------------------------------===//

Expand Down

0 comments on commit 25b517f

Please sign in to comment.