From 4fef448baa775cc6b7eec2633711f7a2109c4bff Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Sun, 4 Mar 2018 12:09:27 +0100 Subject: [PATCH] bindings: cxx: use SPDX license identifier Use the SPDX license identifier for LGPLv2.1 or later in C++ bindings directory. Signed-off-by: Bartosz Golaszewski --- bindings/cxx/Makefile.am | 9 ++++----- bindings/cxx/chip.cpp | 6 +----- bindings/cxx/examples/Makefile.am | 9 ++++----- bindings/cxx/examples/gpiod_cxx_tests.cpp | 6 +----- bindings/cxx/examples/gpiodetectcxx.cpp | 6 +----- bindings/cxx/examples/gpiofindcxx.cpp | 6 +----- bindings/cxx/examples/gpiogetcxx.cpp | 6 +----- bindings/cxx/examples/gpioinfocxx.cpp | 6 +----- bindings/cxx/examples/gpiomoncxx.cpp | 6 +----- bindings/cxx/examples/gpiosetcxx.cpp | 6 +----- bindings/cxx/gpiod.hpp | 6 +----- bindings/cxx/iter.cpp | 6 +----- bindings/cxx/line.cpp | 6 +----- bindings/cxx/line_bulk.cpp | 6 +----- 14 files changed, 20 insertions(+), 70 deletions(-) diff --git a/bindings/cxx/Makefile.am b/bindings/cxx/Makefile.am index e7ad36a..f7b3f17 100644 --- a/bindings/cxx/Makefile.am +++ b/bindings/cxx/Makefile.am @@ -1,10 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + # -# Copyright (C) 2017-2018 Bartosz Golaszewski +# This file is part of libgpiod. # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or (at -# your option) any later version. +# Copyright (C) 2017-2018 Bartosz Golaszewski # lib_LTLIBRARIES = libgpiodcxx.la diff --git a/bindings/cxx/chip.cpp b/bindings/cxx/chip.cpp index 43b411d..a1b5356 100644 --- a/bindings/cxx/chip.cpp +++ b/bindings/cxx/chip.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/bindings/cxx/examples/Makefile.am b/bindings/cxx/examples/Makefile.am index e521137..201e1db 100644 --- a/bindings/cxx/examples/Makefile.am +++ b/bindings/cxx/examples/Makefile.am @@ -1,10 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + # -# Copyright (C) 2017-2018 Bartosz Golaszewski +# This file is part of libgpiod. # -# This program is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or (at -# your option) any later version. +# Copyright (C) 2017-2018 Bartosz Golaszewski # AM_CPPFLAGS = -I$(top_srcdir)/bindings/cxx/ -I$(top_srcdir)/include diff --git a/bindings/cxx/examples/gpiod_cxx_tests.cpp b/bindings/cxx/examples/gpiod_cxx_tests.cpp index a7d0418..7d4d9e5 100644 --- a/bindings/cxx/examples/gpiod_cxx_tests.cpp +++ b/bindings/cxx/examples/gpiod_cxx_tests.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Misc tests/examples of the C++ API. */ diff --git a/bindings/cxx/examples/gpiodetectcxx.cpp b/bindings/cxx/examples/gpiodetectcxx.cpp index bcecf04..118dc17 100644 --- a/bindings/cxx/examples/gpiodetectcxx.cpp +++ b/bindings/cxx/examples/gpiodetectcxx.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* C++ reimplementation of the gpiodetect tool. */ diff --git a/bindings/cxx/examples/gpiofindcxx.cpp b/bindings/cxx/examples/gpiofindcxx.cpp index 382032b..08bcfbf 100644 --- a/bindings/cxx/examples/gpiofindcxx.cpp +++ b/bindings/cxx/examples/gpiofindcxx.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* C++ reimplementation of the gpiofind tool. */ diff --git a/bindings/cxx/examples/gpiogetcxx.cpp b/bindings/cxx/examples/gpiogetcxx.cpp index fb372f7..8678136 100644 --- a/bindings/cxx/examples/gpiogetcxx.cpp +++ b/bindings/cxx/examples/gpiogetcxx.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Simplified C++ reimplementation of the gpioget tool. */ diff --git a/bindings/cxx/examples/gpioinfocxx.cpp b/bindings/cxx/examples/gpioinfocxx.cpp index 5be60bd..d881f1a 100644 --- a/bindings/cxx/examples/gpioinfocxx.cpp +++ b/bindings/cxx/examples/gpioinfocxx.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Simplified C++ reimplementation of the gpioinfo tool. */ diff --git a/bindings/cxx/examples/gpiomoncxx.cpp b/bindings/cxx/examples/gpiomoncxx.cpp index 640aba8..ac11290 100644 --- a/bindings/cxx/examples/gpiomoncxx.cpp +++ b/bindings/cxx/examples/gpiomoncxx.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Simplified C++ reimplementation of the gpiomon tool. */ diff --git a/bindings/cxx/examples/gpiosetcxx.cpp b/bindings/cxx/examples/gpiosetcxx.cpp index d563629..ee6a69d 100644 --- a/bindings/cxx/examples/gpiosetcxx.cpp +++ b/bindings/cxx/examples/gpiosetcxx.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ /* Simplified C++ reimplementation of the gpioset tool. */ diff --git a/bindings/cxx/gpiod.hpp b/bindings/cxx/gpiod.hpp index 032cb51..d066ca8 100644 --- a/bindings/cxx/gpiod.hpp +++ b/bindings/cxx/gpiod.hpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #ifndef __LIBGPIOD_GPIOD_CXX_HPP__ diff --git a/bindings/cxx/iter.cpp b/bindings/cxx/iter.cpp index a9f0d42..779a5c3 100644 --- a/bindings/cxx/iter.cpp +++ b/bindings/cxx/iter.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/bindings/cxx/line.cpp b/bindings/cxx/line.cpp index bd3afc3..5096b07 100644 --- a/bindings/cxx/line.cpp +++ b/bindings/cxx/line.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include diff --git a/bindings/cxx/line_bulk.cpp b/bindings/cxx/line_bulk.cpp index 9937a49..a3ace22 100644 --- a/bindings/cxx/line_bulk.cpp +++ b/bindings/cxx/line_bulk.cpp @@ -1,12 +1,8 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ /* * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation; either version 2.1 of the License, or (at - * your option) any later version. */ #include -- 2.30.2