aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts')
-rwxr-xr-xcontrib/scripts/gnunet-chk.py.in2
-rw-r--r--contrib/scripts/gnunet_janitor.py.in2
-rw-r--r--contrib/scripts/gnunet_pyexpect.py.in2
-rwxr-xr-xcontrib/scripts/spdx.sh26
-rw-r--r--contrib/scripts/terminate.py.in2
5 files changed, 34 insertions, 0 deletions
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 @@
15# You should have received a copy of the GNU Affero General Public License 15# You should have received a copy of the GNU Affero General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>. 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17# 17#
18# SPDX-License-Identifier: AGPL3.0-or-later
19#
18# File: gnunet-chk.py 20# File: gnunet-chk.py
19# Brief: Computes GNUNET style Content Hash Key for a given file 21# Brief: Computes GNUNET style Content Hash Key for a given file
20# Author: Sree Harsha Totakura 22# 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 @@
15# You should have received a copy of the GNU Affero General Public License 15# You should have received a copy of the GNU Affero General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>. 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17# 17#
18# SPDX-License-Identifier: AGPL3.0-or-later
19#
18# Finds any gnunet processes still running in the system and kills them 20# Finds any gnunet processes still running in the system and kills them
19# 21#
20# gnunet janitor can be used by invoking `make' like this: 22# 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 @@
15# You should have received a copy of the GNU Affero General Public License 15# You should have received a copy of the GNU Affero General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>. 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17# 17#
18# SPDX-License-Identifier: AGPL3.0-or-later
19#
18# Testcase for gnunet-peerinfo 20# Testcase for gnunet-peerinfo
19from __future__ import print_function 21from __future__ import print_function
20import os 22import 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 @@
1#!/bin/sh
2# NetBSD compatible sed to insert spdx into headers.
3# This is a one-shot script, future runs would result in duplicate
4# lines.
5#
6# Copyright (C) 2019 ng0 <ng0@n0.is>
7#
8# Permission to use, copy, modify, and/or distribute this software
9# for any purpose with or without fee is hereby granted.
10#
11# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
12# WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
13# WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
14# THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
15# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
17# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
18# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19#
20# SPDX-License-Identifier: 0BSD
21
22for x in $(egrep -nr -m1 "GNU Affero General Public License" . | cut -f1 -d':'); do
23 sed -i -e '/along with this program. If not, see <http:\/\/www.gnu.org\/licenses\/>./a\
24\
25 SPDX-License-Identifier: AGPL3.0-or-later' $x;
26done
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 @@
15# You should have received a copy of the GNU Affero General Public License 15# You should have received a copy of the GNU Affero General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>. 16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17# 17#
18# SPDX-License-Identifier: AGPL3.0-or-later
19#
18# Utility module that implements safe process termination for W32. 20# Utility module that implements safe process termination for W32.
19# For other platforms it's equivalent to Popen.kill () 21# For other platforms it's equivalent to Popen.kill ()
20# Requires pywin32 on W32. 22# Requires pywin32 on W32.