diff mbox series

[V2] REUSE: add SPDX to files in examples

Message ID 20210516183730.115324-1-stefano.babic@babic.homelinux.org
State Accepted
Headers show
Series [V2] REUSE: add SPDX to files in examples | expand

Commit Message

Stefano Babic May 16, 2021, 6:37 p.m. UTC
From: Stefano Babic <sbabic@denx.de>

Signed-off-by: Stefano Babic <sbabic@denx.de>
---

Changes since V1:
	- fix SPDX in examples/lua-xml/sw-description

 examples/configuration/swupdate.cfg           | 3 +++
 examples/description/multi-copy               | 4 ++++
 examples/description/single-copy              | 4 ++++
 examples/description/sw-description-libconfig | 4 ++++
 examples/lua-xml/sw-description               | 2 ++
 examples/lua-xml/xmlparser.lua                | 4 ++++
 examples/scripts/emmcpart.lua                 | 4 ++++
 examples/scripts/shellscript.sh               | 3 +++
 8 files changed, 28 insertions(+)

Comments

Mark Jonas May 16, 2021, 6:44 p.m. UTC | #1
On Sun, May 16, 2021 at 8:37 PM <stefano.babic@babic.homelinux.org> wrote:
>
> From: Stefano Babic <sbabic@denx.de>
>
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>
> Changes since V1:
>         - fix SPDX in examples/lua-xml/sw-description
>
>  examples/configuration/swupdate.cfg           | 3 +++
>  examples/description/multi-copy               | 4 ++++
>  examples/description/single-copy              | 4 ++++
>  examples/description/sw-description-libconfig | 4 ++++
>  examples/lua-xml/sw-description               | 2 ++
>  examples/lua-xml/xmlparser.lua                | 4 ++++
>  examples/scripts/emmcpart.lua                 | 4 ++++
>  examples/scripts/shellscript.sh               | 3 +++
>  8 files changed, 28 insertions(+)
>
> diff --git a/examples/configuration/swupdate.cfg b/examples/configuration/swupdate.cfg
> index 94c0484..39a4401 100644
> --- a/examples/configuration/swupdate.cfg
> +++ b/examples/configuration/swupdate.cfg
> @@ -1,5 +1,8 @@
>  # SWUpdate configuration file
>  #
> +# SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
> +# SPDX-License-Identifier: CC0-1.0
> +#
>  # This is responsible to pass configuration and parameters
>  # to SWUpdate. Most of configuration can be overwritten
>  # with command line parameters.
> diff --git a/examples/description/multi-copy b/examples/description/multi-copy
> index 85c690b..35cd604 100644
> --- a/examples/description/multi-copy
> +++ b/examples/description/multi-copy
> @@ -1,3 +1,7 @@
> +/*
> + * SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
> + * SPDX-License-Identifier: CC0-1.0
> + */
>  software =
>  {
>          version = "0.1";
> diff --git a/examples/description/single-copy b/examples/description/single-copy
> index f5aa990..6d555ac 100644
> --- a/examples/description/single-copy
> +++ b/examples/description/single-copy
> @@ -1,3 +1,7 @@
> +/*
> + * SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
> + * SPDX-License-Identifier: CC0-1.0
> + */
>  software =
>  {
>          version = "0.1";
> diff --git a/examples/description/sw-description-libconfig b/examples/description/sw-description-libconfig
> index a5db0dd..f528a01 100644
> --- a/examples/description/sw-description-libconfig
> +++ b/examples/description/sw-description-libconfig
> @@ -1,3 +1,7 @@
> +/*
> + * SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
> + * SPDX-License-Identifier: CC0-1.0
> + */
>  software =
>  {
>         version = "0.1.0";
> diff --git a/examples/lua-xml/sw-description b/examples/lua-xml/sw-description
> index 5ba721b..a12aa0c 100644
> --- a/examples/lua-xml/sw-description
> +++ b/examples/lua-xml/sw-description
> @@ -1,4 +1,6 @@
>  <?xml version="1.0" encoding="UTF-8"?>
> +<!-- SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de> -->
> +<!-- SPDX-License-Identifier: CC0-1.0 -->
>  <software version="1.0">
>          <name>Update Image</name>
>          <version>1.0.0</version>
> diff --git a/examples/lua-xml/xmlparser.lua b/examples/lua-xml/xmlparser.lua
> index 158bdc0..dd74d03 100644
> --- a/examples/lua-xml/xmlparser.lua
> +++ b/examples/lua-xml/xmlparser.lua
> @@ -1,3 +1,7 @@
> +-- SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
> +--
> +-- SPDX-License-Identifier: CC0-1.0
> +--
>  ----------------------------------------------
>  -- Test XML parsing with Lua
>  ----------------------------------------------
> diff --git a/examples/scripts/emmcpart.lua b/examples/scripts/emmcpart.lua
> index 1d02ffc..840f0a6 100644
> --- a/examples/scripts/emmcpart.lua
> +++ b/examples/scripts/emmcpart.lua
> @@ -1,3 +1,7 @@
> +-- SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
> +--
> +-- SPDX-License-Identifier: CC0-1.0
> +--
>  function os.capture(cmd, raw)
>         local f = assert(io.popen(cmd, 'r'))
>         local s = assert(f:read('*a'))
> diff --git a/examples/scripts/shellscript.sh b/examples/scripts/shellscript.sh
> index 9d601cb..e6876bc 100644
> --- a/examples/scripts/shellscript.sh
> +++ b/examples/scripts/shellscript.sh
> @@ -1,4 +1,7 @@
>  #!/bin/sh
> +# SPDX-FileCopyrightText: 2021 Stefano Babic <sbabic@denx.de>
> +# SPDX-License-Identifier: CC0-1.0
> +
>  #example type = "shellscript";
>
>  do_preinst()
> --
> 2.25.1


Reviewed-by: Mark Jonas <toertel@gmail.com>
diff mbox series

Patch

diff --git a/examples/configuration/swupdate.cfg b/examples/configuration/swupdate.cfg
index 94c0484..39a4401 100644
--- a/examples/configuration/swupdate.cfg
+++ b/examples/configuration/swupdate.cfg
@@ -1,5 +1,8 @@ 
 # SWUpdate configuration file
 #
+# SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
+# SPDX-License-Identifier: CC0-1.0
+#
 # This is responsible to pass configuration and parameters
 # to SWUpdate. Most of configuration can be overwritten
 # with command line parameters.
diff --git a/examples/description/multi-copy b/examples/description/multi-copy
index 85c690b..35cd604 100644
--- a/examples/description/multi-copy
+++ b/examples/description/multi-copy
@@ -1,3 +1,7 @@ 
+/*
+ * SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
+ * SPDX-License-Identifier: CC0-1.0
+ */
 software =
 {
         version = "0.1";
diff --git a/examples/description/single-copy b/examples/description/single-copy
index f5aa990..6d555ac 100644
--- a/examples/description/single-copy
+++ b/examples/description/single-copy
@@ -1,3 +1,7 @@ 
+/*
+ * SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
+ * SPDX-License-Identifier: CC0-1.0
+ */
 software =
 {
         version = "0.1";
diff --git a/examples/description/sw-description-libconfig b/examples/description/sw-description-libconfig
index a5db0dd..f528a01 100644
--- a/examples/description/sw-description-libconfig
+++ b/examples/description/sw-description-libconfig
@@ -1,3 +1,7 @@ 
+/*
+ * SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
+ * SPDX-License-Identifier: CC0-1.0
+ */
 software =
 {
 	version = "0.1.0";
diff --git a/examples/lua-xml/sw-description b/examples/lua-xml/sw-description
index 5ba721b..a12aa0c 100644
--- a/examples/lua-xml/sw-description
+++ b/examples/lua-xml/sw-description
@@ -1,4 +1,6 @@ 
 <?xml version="1.0" encoding="UTF-8"?>
+<!-- SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de> -->
+<!-- SPDX-License-Identifier: CC0-1.0 -->
 <software version="1.0">
         <name>Update Image</name>
         <version>1.0.0</version>
diff --git a/examples/lua-xml/xmlparser.lua b/examples/lua-xml/xmlparser.lua
index 158bdc0..dd74d03 100644
--- a/examples/lua-xml/xmlparser.lua
+++ b/examples/lua-xml/xmlparser.lua
@@ -1,3 +1,7 @@ 
+-- SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
+--
+-- SPDX-License-Identifier: CC0-1.0
+--
 ----------------------------------------------
 -- Test XML parsing with Lua
 ----------------------------------------------
diff --git a/examples/scripts/emmcpart.lua b/examples/scripts/emmcpart.lua
index 1d02ffc..840f0a6 100644
--- a/examples/scripts/emmcpart.lua
+++ b/examples/scripts/emmcpart.lua
@@ -1,3 +1,7 @@ 
+-- SPDX-FileCopyrightText: 2014-2021 Stefano Babic <sbabic@denx.de>
+--
+-- SPDX-License-Identifier: CC0-1.0
+--
 function os.capture(cmd, raw)
 	local f = assert(io.popen(cmd, 'r'))
 	local s = assert(f:read('*a'))
diff --git a/examples/scripts/shellscript.sh b/examples/scripts/shellscript.sh
index 9d601cb..e6876bc 100644
--- a/examples/scripts/shellscript.sh
+++ b/examples/scripts/shellscript.sh
@@ -1,4 +1,7 @@ 
 #!/bin/sh
+# SPDX-FileCopyrightText: 2021 Stefano Babic <sbabic@denx.de>
+# SPDX-License-Identifier: CC0-1.0
+
 #example type = "shellscript";
 
 do_preinst()