diff --git a/CMakeLists.txt b/CMakeLists.txt index 541b673..b9bdda9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,18 +1,8 @@ -# Copyright (C) 2008 by Volker Lanz -# Copyright (C) 2014-2019 by Andrius Štikonas -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# SPDX-FileCopyrightText: 2008 Volker Lanz +# SPDX-FileCopyrightText: 2015 Teo Mrnjavac +# SPDX-FileCopyrightText: 2014-2020 Andrius Štikonas + +# SPDX-License-Identifier: GPL-3.0-or-later project(kpmcore) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e839af2..ce33f9d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,20 +1,8 @@ -# Copyright (C) 2008, 2012 by Volker Lanz -# Copyright (C) 2015 by Teo Mrnjavac -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015 Teo Mrnjavac +# SPDX-FileCopyrightText: 2014-2020 Andrius Štikonas -############################################ +# SPDX-License-Identifier: GPL-3.0-or-later add_definitions(-DTRANSLATION_DOMAIN=\"kpmcore\") diff --git a/src/Messages.sh b/src/Messages.sh index 07543f2..e1b9244 100644 --- a/src/Messages.sh +++ b/src/Messages.sh @@ -1,4 +1,9 @@ #! /usr/bin/env bash + +# SPDX-FileCopyrightText: 2008 Laurent Montel + +# SPDX-License-Identifier: GPL-3.0-or-later + $EXTRACTRC `find -name \*.rc` >> rc.cpp || exit 11 $EXTRACTRC `find -name \*.ui` >> rc.cpp || exit 12 $XGETTEXT `find -name \*.cc -o -name \*.cpp -o -name \*.h` rc.cpp -o $podir/kpmcore.pot diff --git a/src/backend/CMakeLists.txt b/src/backend/CMakeLists.txt index 8f74140..6c8c6e1 100644 --- a/src/backend/CMakeLists.txt +++ b/src/backend/CMakeLists.txt @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015 Chris Campbell +# SPDX-FileCopyrightText: 2017 Andrius Štikonas + +# SPDX-License-Identifier: GPL-3.0-or-later + set(BACKEND_SRC backend/corebackendmanager.cpp backend/corebackenddevice.cpp diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 578f37c..4bf944d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,3 +1,10 @@ +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015 Chris Campbell +# SPDX-FileCopyrightText: 2017 Andrius Štikonas +# SPDX-FileCopyrightText: 2018 Caio Carvalho + +# SPDX-License-Identifier: GPL-3.0-or-later + include(core/raid/CMakeLists.txt) set(CORE_SRC diff --git a/src/core/raid/CMakeLists.txt b/src/core/raid/CMakeLists.txt index d2e18f1..ee77afb 100644 --- a/src/core/raid/CMakeLists.txt +++ b/src/core/raid/CMakeLists.txt @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2018 Caio Carvalho + +# SPDX-License-Identifier: GPL-3.0-or-later + set(RAID_SRC core/raid/softwareraid.cpp ) diff --git a/src/fs/CMakeLists.txt b/src/fs/CMakeLists.txt index 8a03a17..206559d 100644 --- a/src/fs/CMakeLists.txt +++ b/src/fs/CMakeLists.txt @@ -1,3 +1,15 @@ +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015-2019 Andrius Štikonas +# SPDX-FileCopyrightText: 2015 Chris Campbell +# SPDX-FileCopyrightText: 2015 Teo Mrnjavac +# SPDX-FileCopyrightText: 2017 Pali Rohár +# SPDX-FileCopyrightText: 2018 Caio Carvalho +# SPDX-FileCopyrightText: 2019 Shubham Jangra +# SPDX-FileCopyrightText: 2020 Arnaud Ferraris +# SPDX-FileCopyrightText: 2020 Gaël PORTAY + +# SPDX-License-Identifier: GPL-3.0-or-later + set(FS_SRC fs/apfs.cpp fs/bitlocker.cpp diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 9852f78..b804d13 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015 Chris Campbell +# SPDX-FileCopyrightText: 2016 Andrius Štikonas + +# SPDX-License-Identifier: GPL-3.0-or-later + set(GUI_SRC gui/partresizerwidget.cpp gui/partwidget.cpp diff --git a/src/jobs/CMakeLists.txt b/src/jobs/CMakeLists.txt index 08e0776..6aec254 100644 --- a/src/jobs/CMakeLists.txt +++ b/src/jobs/CMakeLists.txt @@ -1,3 +1,10 @@ +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015 Chris Campbell +# SPDX-FileCopyrightText: 2016 Chantara Tith +# SPDX-FileCopyrightText: 2020 Gaël PORTAY + +# SPDX-License-Identifier: GPL-3.0-or-later + set(JOBS_SRC jobs/resizefilesystemjob.cpp jobs/createfilesystemjob.cpp diff --git a/src/ops/CMakeLists.txt b/src/ops/CMakeLists.txt index d61b13b..bc13c57 100644 --- a/src/ops/CMakeLists.txt +++ b/src/ops/CMakeLists.txt @@ -1,3 +1,9 @@ +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015 Chris Campbell +# SPDX-FileCopyrightText: 2016 Chantara Tith + +# SPDX-License-Identifier: GPL-3.0-or-later + set(OPS_SRC ops/operation.cpp ops/deleteoperation.cpp diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index 098738c..cd05524 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -1,19 +1,7 @@ -# Copyright (C) 2010 by Volker Lanz -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# SPDX-FileCopyrightText: 2010 Volker Lanz +# SPDX-FileCopyrightText: 2018 Andrius Štikonas -############################################ +# SPDX-License-Identifier: GPL-3.0-or-later if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") option(PARTMAN_SFDISKBACKEND "Build the sfdisk backend plugin." ON) diff --git a/src/plugins/dummy/CMakeLists.txt b/src/plugins/dummy/CMakeLists.txt index 1c04df4..bc22002 100644 --- a/src/plugins/dummy/CMakeLists.txt +++ b/src/plugins/dummy/CMakeLists.txt @@ -1,17 +1,7 @@ -# Copyright (C) 2010 by Volker Lanz -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# SPDX-FileCopyrightText: 2010 Volker Lanz +# SPDX-FileCopyrightText: 2016-2018 Andrius Štikonas + +# SPDX-License-Identifier: GPL-3.0-or-later set (pmdummybackendplugin_SRCS dummybackend.cpp diff --git a/src/plugins/sfdisk/CMakeLists.txt b/src/plugins/sfdisk/CMakeLists.txt index ad51de5..8d72992 100644 --- a/src/plugins/sfdisk/CMakeLists.txt +++ b/src/plugins/sfdisk/CMakeLists.txt @@ -1,17 +1,7 @@ -# Copyright (C) 2010 by Volker Lanz -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 3 of -# the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# SPDX-FileCopyrightText: 2020 Gaël PORTAY +# SPDX-FileCopyrightText: 2018 Andrius Štikonas + +# SPDX-License-Identifier: GPL-3.0-or-later set (pmsfdiskbackendplugin_SRCS sfdiskbackend.cpp diff --git a/src/util/CMakeLists.txt b/src/util/CMakeLists.txt index b3f2ee2..fab7a70 100644 --- a/src/util/CMakeLists.txt +++ b/src/util/CMakeLists.txt @@ -1,3 +1,13 @@ +# SPDX-FileCopyrightText: 2008,2012 Volker Lanz +# SPDX-FileCopyrightText: 2015 Chris Campbell +# SPDX-FileCopyrightText: 2015 Teo Mrnjavac +# SPDX-FileCopyrightText: 2015 Andrius Štikonas +# SPDX-FileCopyrightText: 2018 Huzaifa Faruqui +# SPDX-FileCopyrightText: 2019 Albert Astals Cid +# SPDX-FileCopyrightText: 2019 Antonio Rojas + +# SPDX-License-Identifier: GPL-3.0-or-later + set(application_interface_xml org.kde.kpmcore.applicationinterface.xml) set(helper_interface_xml org.kde.kpmcore.helperinterface.xml) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 68824f4..5121a13 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,10 @@ +# SPDX-FileCopyrightText: 2017 Adriaan de Groot +# SPDX-FileCopyrightText: 2017-2019 Andrius Štikonas +# SPDX-FileCopyrightText: 2018 Caio Carvalho +# SPDX-FileCopyrightText: 2019 Yuri Chornoivan + +# SPDX-License-Identifier: GPL-3.0-or-later + # Tests for KPMcore # # These are not so much "tests" as "small example programs". They illustrate diff --git a/test/helpers.cpp b/test/helpers.cpp index 9ec2703..0187cd8 100644 --- a/test/helpers.cpp +++ b/test/helpers.cpp @@ -1,21 +1,9 @@ -/************************************************************************* - * Copyright 2017 by Adriaan de Groot * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* - *************************************************************************/ +/* + SPDX-FileCopyrightText: 2017 by Adriaan de Groot + SPDX-FileCopyrightText: 2018 Andrius Štikonas -// SPDX-License-Identifier: GPL-3.0+ + SPDX-License-Identifier: GPL-3.0-or-later +*/ #include "helpers.h" diff --git a/test/helpers.h b/test/helpers.h index 44f4cd7..9e762af 100644 --- a/test/helpers.h +++ b/test/helpers.h @@ -1,21 +1,9 @@ -/************************************************************************* - * Copyright 2017 by Adriaan de Groot * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* - *************************************************************************/ +/* + SPDX-FileCopyrightText: 2017 by Adriaan de Groot + SPDX-FileCopyrightText: 2018 Andrius Štikonas -// SPDX-License-Identifier: GPL-3.0+ + SPDX-License-Identifier: GPL-3.0-or-later +*/ #ifndef TEST_KPMHELPERS_H #define TEST_KPMHELPERS_H diff --git a/test/testdevice.cpp b/test/testdevice.cpp index d74e1c3..802ca24 100644 --- a/test/testdevice.cpp +++ b/test/testdevice.cpp @@ -1,21 +1,10 @@ - /************************************************************************* - * Copyright (C) 2019 by Shubham * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* - *************************************************************************/ - - // SPDX-License-Identifier: GPL-3.0+ +/* + SPDX-FileCopyrightText: 2019 Shubham Jangra + SPDX-FileCopyrightText: 2019 Andrius Štikonas + SPDX-FileCopyrightText: 2019 Yuri Chornoivan + + SPDX-License-Identifier: GPL-3.0-or-later +*/ #include "testdevice.h" #include "helpers.h" diff --git a/test/testdevice.h b/test/testdevice.h index 0256792..4a14fa8 100644 --- a/test/testdevice.h +++ b/test/testdevice.h @@ -1,21 +1,9 @@ - /************************************************************************* - * Copyright (C) 2019 by Shubham * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* -**************************************************************************/ - -// SPDX-License-Identifier: GPL-3.0+ +/* + SPDX-FileCopyrightText: 2019 Shubham Jangra + SPDX-FileCopyrightText: 2019 Andrius Štikonas + + SPDX-License-Identifier: GPL-3.0-or-later +*/ #ifndef TESTDEVICE_H #define TESTDEVICE_H diff --git a/test/testdevicescanner.cpp b/test/testdevicescanner.cpp index 65605af..c485c4c 100644 --- a/test/testdevicescanner.cpp +++ b/test/testdevicescanner.cpp @@ -1,22 +1,10 @@ -/************************************************************************* - * Copyright 2017 by Adriaan de Groot * - * Copyright 2017 by Andrius Štikonas * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* - *************************************************************************/ +/* + SPDX-FileCopyrightText: 2017 Adriaan de Groot + SPDX-FileCopyrightText: 2017 Andrius Štikonas + SPDX-FileCopyrightText: 2019 Shubham Jangra -// SPDX-License-Identifier: GPL-3.0+ + SPDX-License-Identifier: GPL-3.0-or-later +*/ // Lists devices diff --git a/test/testexternalcommand.cpp b/test/testexternalcommand.cpp index 3678fd9..6f64083 100644 --- a/test/testexternalcommand.cpp +++ b/test/testexternalcommand.cpp @@ -1,21 +1,10 @@ -/************************************************************************* - * Copyright 2017 by Andrius Štikonas * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* - *************************************************************************/ +/* + SPDX-FileCopyrightText: 2018 Andrius Štikonas + SPDX-FileCopyrightText: 2019 Shubham Jangra + SPDX-FileCopyrightText: 2019 Albert Astals Cid -// SPDX-License-Identifier: GPL-3.0+ + SPDX-License-Identifier: GPL-3.0-or-later +*/ #include "helpers.h" diff --git a/test/testinit.cpp b/test/testinit.cpp index 977c284..36969ff 100644 --- a/test/testinit.cpp +++ b/test/testinit.cpp @@ -1,21 +1,10 @@ -/************************************************************************* - * Copyright 2017 by Adriaan de Groot * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* - *************************************************************************/ +/* + SPDX-FileCopyrightText: 2017 Adriaan de Groot + SPDX-FileCopyrightText: 2018 Andrius Štikonas + SPDX-FileCopyrightText: 2019 Shubham Jangra -// SPDX-License-Identifier: GPL-3.0+ + SPDX-License-Identifier: GPL-3.0-or-later +*/ // Initializes KPMcore, and either loads the default backend for // the current platform, or if one is named on the command line, diff --git a/test/testlist.cpp b/test/testlist.cpp index 1b92866..2bdbdbe 100644 --- a/test/testlist.cpp +++ b/test/testlist.cpp @@ -1,21 +1,10 @@ -/************************************************************************* - * Copyright 2017 by Adriaan de Groot * - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 3 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see .* - *************************************************************************/ +/* + SPDX-FileCopyrightText: 2017 Adriaan de Groot + SPDX-FileCopyrightText: 2017-2019 Andrius Štikonas + SPDX-FileCopyrightText: 2019 Shubham Jangra -// SPDX-License-Identifier: GPL-3.0+ + SPDX-License-Identifier: GPL-3.0-or-later +*/ // Lists devices