From 750d2818314cf81c993cc17148bfd0bbd7ffcd16 Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 16 Jan 2019 09:25:11 +0000 Subject: More spdx identifiers. For openrc service file, adjust the header to reflect changes in Gentoo (->Foundation=>Authors). --- contrib/scripts/gnunet-chk.py.in | 2 ++ contrib/scripts/gnunet_janitor.py.in | 2 ++ contrib/scripts/gnunet_pyexpect.py.in | 2 ++ contrib/scripts/spdx.sh | 26 ++++++++++++++++++++++++++ contrib/scripts/terminate.py.in | 2 ++ 5 files changed, 34 insertions(+) create mode 100755 contrib/scripts/spdx.sh (limited to 'contrib/scripts') diff --git a/contrib/scripts/gnunet-chk.py.in b/contrib/scripts/gnunet-chk.py.in index cabaef6c4..c60211556 100755 --- a/contrib/scripts/gnunet-chk.py.in +++ b/contrib/scripts/gnunet-chk.py.in @@ -15,6 +15,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # +# SPDX-License-Identifier: AGPL3.0-or-later +# # File: gnunet-chk.py # Brief: Computes GNUNET style Content Hash Key for a given file # Author: Sree Harsha Totakura diff --git a/contrib/scripts/gnunet_janitor.py.in b/contrib/scripts/gnunet_janitor.py.in index cbe96a8eb..4ae9ad124 100644 --- a/contrib/scripts/gnunet_janitor.py.in +++ b/contrib/scripts/gnunet_janitor.py.in @@ -15,6 +15,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # +# SPDX-License-Identifier: AGPL3.0-or-later +# # Finds any gnunet processes still running in the system and kills them # # gnunet janitor can be used by invoking `make' like this: diff --git a/contrib/scripts/gnunet_pyexpect.py.in b/contrib/scripts/gnunet_pyexpect.py.in index f155db5be..810d5b321 100644 --- a/contrib/scripts/gnunet_pyexpect.py.in +++ b/contrib/scripts/gnunet_pyexpect.py.in @@ -15,6 +15,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # +# SPDX-License-Identifier: AGPL3.0-or-later +# # Testcase for gnunet-peerinfo from __future__ import print_function import os diff --git a/contrib/scripts/spdx.sh b/contrib/scripts/spdx.sh new file mode 100755 index 000000000..c0c87809f --- /dev/null +++ b/contrib/scripts/spdx.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# NetBSD compatible sed to insert spdx into headers. +# This is a one-shot script, future runs would result in duplicate +# lines. +# +# Copyright (C) 2019 ng0 +# +# Permission to use, copy, modify, and/or distribute this software +# for any purpose with or without fee is hereby granted. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL +# THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR +# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# +# SPDX-License-Identifier: 0BSD + +for x in $(egrep -nr -m1 "GNU Affero General Public License" . | cut -f1 -d':'); do + sed -i -e '/along with this program. If not, see ./a\ +\ + SPDX-License-Identifier: AGPL3.0-or-later' $x; +done diff --git a/contrib/scripts/terminate.py.in b/contrib/scripts/terminate.py.in index 30f5dc97f..161b4db61 100644 --- a/contrib/scripts/terminate.py.in +++ b/contrib/scripts/terminate.py.in @@ -15,6 +15,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # +# SPDX-License-Identifier: AGPL3.0-or-later +# # Utility module that implements safe process termination for W32. # For other platforms it's equivalent to Popen.kill () # Requires pywin32 on W32. -- cgit v1.2.3