[glib: 1/4] tests: Add SPDX license headers automatically
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/4] tests: Add SPDX license headers automatically
- Date: Tue, 5 Jul 2022 11:06:58 +0000 (UTC)
commit b2272ffb81a9b3e1749f820da0c78ef5b82ac10a
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Jun 1 12:17:28 2022 +0100
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 <pwithnall endlessos org>
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 f2051f376c..18251f220b 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 e58965b47e..cb889eb98d 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 94bc9b9680..7f7f6cbe44 100644
--- a/gobject/tests/bindinggroup.c
+++ b/gobject/tests/bindinggroup.c
@@ -3,6 +3,8 @@
* Copyright (C) 2015-2022 Christian Hergert <christian hergert me>
* Copyright (C) 2015 Garrett Regier <garrettregier gmail com>
*
+ * 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 7a4fa9e8cf..92f9087fd7 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 773aaa1bd4..296b8deb95 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 6174330276..cb33cb6908 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 afe3c2e8c4..4483c18580 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 cb7acf4ecd..3356da0b3d 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 3974e9dfed..deaa96130a 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 787c2d8f0d..2d18e88cc9 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 1dee606439..7b8aa9b77e 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 9b82dc45f3..436d7ead1f 100644
--- a/gobject/tests/signalgroup.c
+++ b/gobject/tests/signalgroup.c
@@ -3,6 +3,8 @@
* Copyright (C) 2015-2022 Christian Hergert <christian hergert me>
* Copyright (C) 2015 Garrett Regier <garrettregier gmail com>
*
+ * 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 db024f18c4..fc2752e09f 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 a2b69b7b76..06b62b4764 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 5c7e663bf0..0f073d4ff4 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 3133be1002..6100599866 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 e849b4d9cb..4d6e331afb 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 3c7e881378..c294020edb 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]