diff options
| author | Sebastian Englbrecht <[email protected]> | 2026-05-21 19:48:41 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-05-28 08:59:51 +0000 |
| commit | e343cbdfa52f5ff9b754e863830b08416e321ffd (patch) | |
| tree | b651452775f0b72b3b999528abaf90b101067871 /src/Messages.sh | |
| parent | 680ccee08cfac2b53bb7bf7d35b780889efa4b51 (diff) | |
Add REUSE/SPDX compliance headers to all files
Dolphin was missing copyright and license information on ~750 files,
which would cause the KDE CI job `gitlab-templates/reuse-lint.yml` to fail.
This commit makes the project fully compliant with REUSE Specification 3.3.
REUSE.toml is used for file categories that cannot carry inline comments
or are managed externally:
- po/**: covered with precedence=aggregate so the bulk declaration
combines with individual translators' existing inline headers
- **/*.kcfg, **/*.kcfgc: KConfigXT schema files, no comment syntax
- doc/*.png: documentation screenshots
- src/icons/*.png: application icons (LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL)
- src/**/*.{qrc,rc,desktop,xml,json,knsrc,upd,in}: resource and
metadata files without usable comment syntax
- .gitignore, .git-blame-ignore-revs: infrastructure, CC0-1.0
- logo.png: application artwork (LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL)
Inline SPDX headers are added to all source files that support comments
(C++, QML, CMake, shell scripts, Python). A small number of remaining
binary or single-purpose files retain individual .license sidecars.
License inference heuristic (applied per file, in order):
1. Existing inline SPDX-License-Identifier — reused as-is
2. Most common license among sibling files in the same directory
that already carry SPDX info, excluding infrastructure filenames
(.gitignore etc.) and requiring at least two qualifying neighbors
to prevent a single CC0 CI config from pulling source files along
3. Default: GPL-2.0-or-later
Copyright years and authors are sourced from `git log --follow` per
file. Automation accounts (l10n daemon [email protected], Weblate) are
excluded from author lists. If more than 5 authors are found only a
generic KDE Contributors was used.
Diffstat (limited to 'src/Messages.sh')
| -rwxr-xr-x | src/Messages.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Messages.sh b/src/Messages.sh index ec4333e7c..90fc08d4d 100755 --- a/src/Messages.sh +++ b/src/Messages.sh @@ -1,4 +1,13 @@ #! /usr/bin/env bash + +# SPDX-FileCopyrightText: 2006, 2010 Laurent Montel <[email protected]> +# SPDX-FileCopyrightText: 2007 Albert Astals Cid <[email protected]> +# SPDX-FileCopyrightText: 2007 Stephan Kulow <[email protected]> +# SPDX-FileCopyrightText: 2007, 2008 Chusslove Illich <[email protected]> +# SPDX-FileCopyrightText: 2019 Pino Toscano <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0-or-later + $EXTRACTRC `find . -name \*.ui -o -name \*.rc -o -name \*.kcfg` >> rc.cpp $XGETTEXT `find . -name \*.cpp \! -path '*/servicemenuinstaller/*'` -o $podir/dolphin.pot rm -f rc.cpp |
