From b2272ffb81a9b3e1749f820da0c78ef5b82ac10a Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 1 Jun 2022 12:17:28 +0100 Subject: [PATCH] tests: Add SPDX license headers automatically Add SPDX license (but not copyright) headers to all files which follow a certain pattern in their existing non-machine-readable header comment. This commit was entirely generated using the command: ``` git ls-files gobject/tests/*.[ch] | xargs perl -0777 -pi -e 's/\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/\n \*\n \* SPDX-License-Identifier: LGPL-2.1-or-later\n \*\n \* This library is free software; you can redistribute it and\/or\n \* modify it under the terms of the GNU Lesser General Public/igs' ``` Signed-off-by: Philip Withnall Helps: #1415 --- gobject/tests/accumulator.c | 2 ++ gobject/tests/basic-signals.c | 2 ++ gobject/tests/bindinggroup.c | 2 ++ gobject/tests/defaultiface.c | 2 ++ gobject/tests/deftype.c | 2 ++ gobject/tests/dynamictype.c | 2 ++ gobject/tests/flags.c | 2 ++ gobject/tests/ifaceproperties.c | 2 ++ gobject/tests/override.c | 2 ++ gobject/tests/param.c | 2 ++ gobject/tests/references.c | 2 ++ gobject/tests/signalgroup.c | 2 ++ gobject/tests/singleton.c | 2 ++ gobject/tests/testcommon.h | 2 ++ gobject/tests/testing.c | 2 ++ gobject/tests/testmodule.c | 2 ++ gobject/tests/testmodule.h | 2 ++ gobject/tests/value.c | 2 ++ 18 files changed, 36 insertions(+) diff --git a/gobject/tests/accumulator.c b/gobject/tests/accumulator.c index f2051f376..18251f220 100644 --- a/gobject/tests/accumulator.c +++ b/gobject/tests/accumulator.c @@ -1,6 +1,8 @@ /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2001, 2003 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/basic-signals.c b/gobject/tests/basic-signals.c index e58965b47..cb889eb98 100644 --- a/gobject/tests/basic-signals.c +++ b/gobject/tests/basic-signals.c @@ -2,6 +2,8 @@ * Copyright (C) 2013 Red Hat, Inc. * Copy and pasted from accumulator.c and modified. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/bindinggroup.c b/gobject/tests/bindinggroup.c index 94bc9b968..7f7f6cbe4 100644 --- a/gobject/tests/bindinggroup.c +++ b/gobject/tests/bindinggroup.c @@ -3,6 +3,8 @@ * Copyright (C) 2015-2022 Christian Hergert * Copyright (C) 2015 Garrett Regier * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/defaultiface.c b/gobject/tests/defaultiface.c index 7a4fa9e8c..92f9087fd 100644 --- a/gobject/tests/defaultiface.c +++ b/gobject/tests/defaultiface.c @@ -1,6 +1,8 @@ /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2001, 2003 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/deftype.c b/gobject/tests/deftype.c index 773aaa1bd..296b8deb9 100644 --- a/gobject/tests/deftype.c +++ b/gobject/tests/deftype.c @@ -1,6 +1,8 @@ /* deftype.c * Copyright (C) 2006 Behdad Esfahbod * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/dynamictype.c b/gobject/tests/dynamictype.c index 617433027..cb33cb690 100644 --- a/gobject/tests/dynamictype.c +++ b/gobject/tests/dynamictype.c @@ -1,6 +1,8 @@ /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2001, 2003 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/flags.c b/gobject/tests/flags.c index afe3c2e8c..4483c1858 100644 --- a/gobject/tests/flags.c +++ b/gobject/tests/flags.c @@ -1,6 +1,8 @@ /* flags.c * Copyright (C) 2018 Arthur Demchenkov * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/ifaceproperties.c b/gobject/tests/ifaceproperties.c index cb7acf4ec..3356da0b3 100644 --- a/gobject/tests/ifaceproperties.c +++ b/gobject/tests/ifaceproperties.c @@ -1,6 +1,8 @@ /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2001, 2003 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/override.c b/gobject/tests/override.c index 3974e9dfe..deaa96130 100644 --- a/gobject/tests/override.c +++ b/gobject/tests/override.c @@ -3,6 +3,8 @@ * Copyright (C) 2001, James Henstridge * Copyright (C) 2003, Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/param.c b/gobject/tests/param.c index 787c2d8f0..2d18e88cc 100644 --- a/gobject/tests/param.c +++ b/gobject/tests/param.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/references.c b/gobject/tests/references.c index 1dee60643..7b8aa9b77 100644 --- a/gobject/tests/references.c +++ b/gobject/tests/references.c @@ -1,6 +1,8 @@ /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2005 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/signalgroup.c b/gobject/tests/signalgroup.c index 9b82dc45f..436d7ead1 100644 --- a/gobject/tests/signalgroup.c +++ b/gobject/tests/signalgroup.c @@ -3,6 +3,8 @@ * Copyright (C) 2015-2022 Christian Hergert * Copyright (C) 2015 Garrett Regier * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/singleton.c b/gobject/tests/singleton.c index db024f18c..fc2752e09 100644 --- a/gobject/tests/singleton.c +++ b/gobject/tests/singleton.c @@ -1,6 +1,8 @@ /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2006 Imendio AB * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/testcommon.h b/gobject/tests/testcommon.h index a2b69b7b7..06b62b476 100644 --- a/gobject/tests/testcommon.h +++ b/gobject/tests/testcommon.h @@ -1,6 +1,8 @@ /* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 2003 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/testing.c b/gobject/tests/testing.c index 5c7e663bf..0f073d4ff 100644 --- a/gobject/tests/testing.c +++ b/gobject/tests/testing.c @@ -2,6 +2,8 @@ * * Copyright © 2019 Endless Mobile, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/testmodule.c b/gobject/tests/testmodule.c index 3133be100..610059986 100644 --- a/gobject/tests/testmodule.c +++ b/gobject/tests/testmodule.c @@ -2,6 +2,8 @@ * testmodule.c: Dummy dynamic type module * Copyright (C) 2003 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/testmodule.h b/gobject/tests/testmodule.h index e849b4d9c..4d6e331af 100644 --- a/gobject/tests/testmodule.h +++ b/gobject/tests/testmodule.h @@ -2,6 +2,8 @@ * testmodule.h: Dummy dynamic type module * Copyright (C) 2003 Red Hat, Inc. * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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 diff --git a/gobject/tests/value.c b/gobject/tests/value.c index 3c7e88137..c294020ed 100644 --- a/gobject/tests/value.c +++ b/gobject/tests/value.c @@ -1,6 +1,8 @@ /* GLIB - Library of useful routines for C programming * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library 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