summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authormax.mehl <max.mehl@fsfe.org>2022-05-17 11:16:50 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-06-13 09:13:00 +0200
commitad9bc5976d6661cd5b03ebc379313bf657701c14 (patch)
tree426eda5bab8991572f9e80b11844eb525ce18163 /scripts
parent965119855d74c918372099bdcf81efa76b7a6988 (diff)
downloadcurl-ad9bc5976d6661cd5b03ebc379313bf657701c14.tar.gz
copyright: make repository REUSE compliant
Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the file `.reuse/dep5`. This commit also adds a Github workflow to check pull requests and adapts copyright.pl to the changes. Closes #8869
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am2
-rwxr-xr-xscripts/checksrc.pl2
-rwxr-xr-xscripts/ciconfig.pl2
-rwxr-xr-xscripts/cijobs.pl2
-rwxr-xr-xscripts/completion.pl2
-rwxr-xr-xscripts/contributors.sh2
-rwxr-xr-xscripts/contrithanks.sh4
-rwxr-xr-xscripts/copyright.pl11
-rwxr-xr-xscripts/coverage.sh2
-rwxr-xr-xscripts/delta2
-rwxr-xr-xscripts/firefox-db2pem.sh2
-rw-r--r--scripts/installcheck.sh4
-rwxr-xr-xscripts/log2changes.pl4
-rwxr-xr-xscripts/mk-ca-bundle.pl2
-rwxr-xr-xscripts/release-notes.pl2
-rwxr-xr-xscripts/singleuse.pl4
-rwxr-xr-xscripts/updatemanpages.pl4
-rwxr-xr-xscripts/zuul/before_script.sh2
-rwxr-xr-xscripts/zuul/script.sh2
19 files changed, 47 insertions, 10 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index eaa249843..ed9819b87 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -18,6 +18,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
EXTRA_DIST = updatemanpages.pl coverage.sh completion.pl firefox-db2pem.sh \
diff --git a/scripts/checksrc.pl b/scripts/checksrc.pl
index a5211bee2..651b4b700 100755
--- a/scripts/checksrc.pl
+++ b/scripts/checksrc.pl
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
use strict;
diff --git a/scripts/ciconfig.pl b/scripts/ciconfig.pl
index ed7767cb9..9d4d0bbe2 100755
--- a/scripts/ciconfig.pl
+++ b/scripts/ciconfig.pl
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
# these options are enabled by default in the sense that they will attempt to
diff --git a/scripts/cijobs.pl b/scripts/cijobs.pl
index 3242c31a7..428267519 100755
--- a/scripts/cijobs.pl
+++ b/scripts/cijobs.pl
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
my %filelevel= ('file' => 1,
diff --git a/scripts/completion.pl b/scripts/completion.pl
index f17da8be7..c2eb774f7 100755
--- a/scripts/completion.pl
+++ b/scripts/completion.pl
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
use strict;
diff --git a/scripts/contributors.sh b/scripts/contributors.sh
index 90fc24d7e..6be35d51d 100755
--- a/scripts/contributors.sh
+++ b/scripts/contributors.sh
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
#
diff --git a/scripts/contrithanks.sh b/scripts/contrithanks.sh
index 36d289ddb..38c7b89ef 100755
--- a/scripts/contrithanks.sh
+++ b/scripts/contrithanks.sh
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2013 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2013 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
#
diff --git a/scripts/copyright.pl b/scripts/copyright.pl
index d031ab088..466a0459b 100755
--- a/scripts/copyright.pl
+++ b/scripts/copyright.pl
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
#
# Invoke script in the root of the git checkout. Scans all files in git unless
@@ -36,8 +38,6 @@ my @skiplist=(
# the man pages:
'(\/|^)[A-Z0-9_.-]+[^31]$',
'(\/|^)[A-Z0-9_-]+\.md$', # all uppercase file name with .md extension
- '.gitignore', # wherever they are
- '.gitattributes', # wherever they are
'^tests/certs/.*', # generated certs
'^tests/stunnel.pem', # generated cert
'^tests/valgrind.supp', # valgrind suppressions
@@ -48,9 +48,6 @@ my @skiplist=(
'^m4/ax_compile_check_sizeof.m4$', # imported, leave be
'^.mailmap', # git control file
'\/readme',
- '^.github/', # github instruction files
- '^.dcignore', # deepcode.ai instruction file
- '^.lift/', # muse-CI control files
"buildconf", # its nothing to copyright
# docs/ files we're okay with without copyright
@@ -84,6 +81,10 @@ my @skiplist=(
# markdown linkchecker config
"mlc_config.json",
+ # License texts and REUSE-specific files
+ ".reuse/dep5",
+ "LICENSES/.*"
+
);
sub scanfile {
diff --git a/scripts/coverage.sh b/scripts/coverage.sh
index aeaa23584..f3db9af17 100755
--- a/scripts/coverage.sh
+++ b/scripts/coverage.sh
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
autoreconf -fi
diff --git a/scripts/delta b/scripts/delta
index cb246e445..3c6a823d3 100755
--- a/scripts/delta
+++ b/scripts/delta
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
# Display changes done in the repository from [tag] until now.
diff --git a/scripts/firefox-db2pem.sh b/scripts/firefox-db2pem.sh
index c317ae7e1..36c2de93c 100755
--- a/scripts/firefox-db2pem.sh
+++ b/scripts/firefox-db2pem.sh
@@ -19,6 +19,8 @@
# * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# * KIND, either express or implied.
# *
+# * SPDX-License-Identifier: curl
+# *
# ***************************************************************************
# This shell script creates a fresh ca-bundle.crt file for use with libcurl.
# It extracts all ca certs it finds in the local Firefox database and converts
diff --git a/scripts/installcheck.sh b/scripts/installcheck.sh
index 87860c7da..f7df595f1 100644
--- a/scripts/installcheck.sh
+++ b/scripts/installcheck.sh
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
PREFIX=$1
diff --git a/scripts/log2changes.pl b/scripts/log2changes.pl
index d3539cb60..1af705758 100755
--- a/scripts/log2changes.pl
+++ b/scripts/log2changes.pl
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
# git log --pretty=fuller --no-color --date=short --decorate=full
diff --git a/scripts/mk-ca-bundle.pl b/scripts/mk-ca-bundle.pl
index 6c981ce1b..926478f12 100755
--- a/scripts/mk-ca-bundle.pl
+++ b/scripts/mk-ca-bundle.pl
@@ -19,6 +19,8 @@
# * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# * KIND, either express or implied.
# *
+# * SPDX-License-Identifier: curl
+# *
# ***************************************************************************
# This Perl script creates a fresh ca-bundle.crt file for use with libcurl.
# It downloads certdata.txt from Mozilla's source tree (see URL below),
diff --git a/scripts/release-notes.pl b/scripts/release-notes.pl
index c224764fd..6afd53348 100755
--- a/scripts/release-notes.pl
+++ b/scripts/release-notes.pl
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
###############################################
diff --git a/scripts/singleuse.pl b/scripts/singleuse.pl
index b7015ce36..0b707f440 100755
--- a/scripts/singleuse.pl
+++ b/scripts/singleuse.pl
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 2019 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2019 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
#
# This script is aimed to help scan for and detect globally declared functions
diff --git a/scripts/updatemanpages.pl b/scripts/updatemanpages.pl
index 2b6e25a65..fd461e4bd 100755
--- a/scripts/updatemanpages.pl
+++ b/scripts/updatemanpages.pl
@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
# Update man pages.
diff --git a/scripts/zuul/before_script.sh b/scripts/zuul/before_script.sh
index ac766d3ee..7a386f674 100755
--- a/scripts/zuul/before_script.sh
+++ b/scripts/zuul/before_script.sh
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
set -eo pipefail
diff --git a/scripts/zuul/script.sh b/scripts/zuul/script.sh
index 40090bc0a..11a682081 100755
--- a/scripts/zuul/script.sh
+++ b/scripts/zuul/script.sh
@@ -19,6 +19,8 @@
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
+# SPDX-License-Identifier: curl
+#
###########################################################################
set -eo pipefail