icinga2/lib/cli
Yonas Habteab 91c7e60df8 Replace all existing copyright headers with SPDX headers
I've used the following command to replace the original copyright header
lines in a C-style comment block:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f -exec perl -pi -e 's{/\*[^*]*\(\s*c\s*\)\s*(\d{4})\s*Icinga\s+GmbH[^*]*\*/}{// SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n// SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```

For files that use shell-style comments (#) like CMakeLists.txt, I've
used this command:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f -exec perl -pi -e 's{#.*\(\s*c\s*\)\s(\d{4})\sIcinga\s+GmbH.*}{# SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n# SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```

And for SQL files:

```
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f \( -name '*.sql' \) -exec perl -pi -e 's{--.*\(c\)\s(\d{4})\sIcinga\sGmbH.*}{-- SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n-- SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
$ find . \( -type d \( -name '\..*' -o -name third-party -o -name scripts -o -name prefix -o -name malloc -o -name server -o -name docker -o -name build -o -name doc \) -prune \) -o -type f \( -name '*.sql' \) -exec perl -pi -e 's{-- Copyright \(c\)\s(\d{4})\sIcinga\s+Development\sTeam.*}{-- SPDX-FileCopyrightText: \1 Icinga GmbH <https://icinga.com>\n-- SPDX-License-Identifier: GPL-2.0-or-later}gi' {} +
```
2026-02-04 14:00:05 +01:00
..
apisetupcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
apisetupcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
apisetuputility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
apisetuputility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
calistcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
calistcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
caremovecommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
caremovecommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
carestorecommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
carestorecommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
casigncommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
casigncommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
clicommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
clicommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
CMakeLists.txt Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
consolecommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
consolecommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
daemoncommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
daemoncommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
daemonutility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
daemonutility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
editline.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featuredisablecommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featuredisablecommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featureenablecommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featureenablecommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featurelistcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featurelistcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featureutility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
featureutility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
i2-cli.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
internalsignalcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
internalsignalcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
nodesetupcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
nodesetupcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
nodeutility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
nodeutility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
nodewizardcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
nodewizardcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
objectlistcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
objectlistcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
objectlistutility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
objectlistutility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkinewcacommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkinewcacommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkinewcertcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkinewcertcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkirequestcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkirequestcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkisavecertcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkisavecertcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkisigncsrcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkisigncsrcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkiticketcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkiticketcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkiverifycommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
pkiverifycommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
variablegetcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
variablegetcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
variablelistcommand.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
variablelistcommand.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
variableutility.cpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00
variableutility.hpp Replace all existing copyright headers with SPDX headers 2026-02-04 14:00:05 +01:00