Add helper files to perform the re-licensing

* relicensing-scripts/file-licenses.orig.txt: New file that
	contains the raw set of files with SPDX identifiers denoting
	LGPLv3+ files.  It's the result of a simple command based on
	"find" and "grep".
	* relicensing-scripts/files-with-lgplv3.txt: New file
	containing the same data as the file above, but massaged to be
	easily useable by the script below.
	* relicensing-scripts/do-relicensing.sh: This is a simple command
	which performs the re-licensing on the files listed in the file
	above.

Signed-off-by: Benjamin De Kosnik <bkoz@gnu.org>
Signed-off-by: Ben Woodard <woodard@redhat.com>
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
Signed-off-by: Dodji Seketeli <dodji@redhat.com>
Signed-off-by: Giuliano Procida <gprocida@google.com>
Signed-off-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
Signed-off-by: Mark Wielaard <mark@klomp.org>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Matthias Klose <doko@ubuntu.com>
Signed-off-by: Ondrej Oprala <ondrej.oprala@gmail.com>
Signed-off-by: Roland McGrath <roland@hack.frob.com>
Signed-off-by: Sinny Kumari <ksinny@gmail.com>
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
This commit is contained in:
Dodji Seketeli 2020-05-29 16:34:37 +02:00
parent 964bf04158
commit fb5749b5ee
3 changed files with 284 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# Author: Dodji Seketeli <dodji@redhat.com>
#This does the actual re-licensing
grep '^\.' relicensing-scripts/files-with-lgplv3.txt | while read file
do
echo ./relicensing-scripts/replace-spdx-license.sh --from "LGPL-3.0-or-later" --to "Apache-2.0 WITH LLVM-exception" "$file"
done

View File

@ -0,0 +1,138 @@
# This is the result of a looking for the files with an
# LGPL-3.0-or-later license:
#
# find . -type f -exec grep -n "SPDX-License-Identifier:" {} /dev/null \; | grep LGPL-3.0-or-later
./bash-completion/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/abicompat:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/abidiff:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/abidw:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/abilint:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/abinilint:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/abipkgdiff:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/abisym:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./bash-completion/fedabipkgdiff:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./doc/api/libabigail.doxy:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./doc/manuals/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./doc/website/libabigail-website.doxy:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./doc/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-comparison.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-suppression.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-diff-utils.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-dwarf-reader.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-fwd.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-hash.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-ini.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-interned-str.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-ir.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-libxml-utils.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-libzip-utils.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-regex.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-reporter.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-sptr-utils.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-tools-utils.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-traverse.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-viz-dot.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-viz-svg.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-workers.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-comp-filter.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-corpus.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-viz-common.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-writer.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-config.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-reader.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./include/abg-version.h.in:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./scripts/dot_to_png.sh:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./scripts/dot_to_svg.sh:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./scripts/make-verbose.sh:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./scripts/svg_to_plain_svg.sh:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./scripts/svg_to_png_and_pdf.sh:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-corpus.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-default-reporter.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-diff-utils.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-dwarf-reader.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-hash.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-ini.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-internal.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-ir-priv.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-leaf-reporter.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-libzip-utils.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-reporter-priv.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-suppression-priv.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-viz-svg.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-workers.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-writer.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-elf-helpers.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-elf-helpers.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-regex.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-viz-common.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-suppression.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-tools-utils.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-traverse.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-comp-filter.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-comparison-priv.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-comparison.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-config.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-corpus-priv.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-ir.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-libxml-utils.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-reader.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-reporter-priv.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./src/abg-viz-dot.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/data/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./tests/lib/catch.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/runtestdefaultsupprs.py.in:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tests/runtestfedabipkgdiffpy3.sh.in:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tests/mockfedabipkgdiff.in:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-abicompat.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/print-diff-tree.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-utils.h:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-cxx-compat.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-elf-helpers.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-symtab.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./tests/runtestcanonicalizetypes.sh.in:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tests/runtestdefaultsupprspy3.sh.in:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tests/update-test-output.py:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tests/runtestfedabipkgdiff.py.in:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-ir-walker.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-kmi-whitelist.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-lookup-syms.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-read-write.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-tools-utils.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-utils.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-write-read-archive.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-alt-dwarf-file.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-annotate.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-core-diff.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-diff-dwarf-abixml.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-diff-dwarf.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-diff-filter.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-diff-pkg.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-diff-suppr.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-diff2.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-dot.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-ini.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-read-dwarf.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-svg.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-types-stability.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-abidiff-exit.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tests/test-abidiff.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/abiar.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/abicompat.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/abidiff.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/abidw.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/abilint.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/abipkgdiff.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/abisym.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/binilint.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/fedabipkgdiff:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./tools/kmidiff.cc:1:// SPDX-License-Identifier: LGPL-3.0-or-later
./tools/Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./update-copyright.sh:2:# SPDX-License-Identifier: LGPL-3.0-or-later
./.clang-format:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./configure.ac:1:# SPDX-License-Identifier: LGPL-3.0-or-later
./Makefile.am:1:## SPDX-License-Identifier: LGPL-3.0-or-later
./default.abignore:1:# SPDX-License-Identifier: LGPL-3.0-or-later

View File

@ -0,0 +1,137 @@
# This is extracted from file-licenses.orig.txt with:
# awk -F: '{print $1}' file-licenses.orig.txt
#
./bash-completion/Makefile.am
./bash-completion/abicompat
./bash-completion/abidiff
./bash-completion/abidw
./bash-completion/abilint
./bash-completion/abinilint
./bash-completion/abipkgdiff
./bash-completion/abisym
./bash-completion/fedabipkgdiff
./doc/api/libabigail.doxy
./doc/manuals/Makefile.am
./doc/website/libabigail-website.doxy
./doc/Makefile.am
./include/abg-comparison.h
./include/abg-suppression.h
./include/abg-diff-utils.h
./include/abg-dwarf-reader.h
./include/abg-fwd.h
./include/abg-hash.h
./include/abg-ini.h
./include/abg-interned-str.h
./include/abg-ir.h
./include/abg-libxml-utils.h
./include/abg-libzip-utils.h
./include/abg-regex.h
./include/abg-reporter.h
./include/abg-sptr-utils.h
./include/abg-tools-utils.h
./include/abg-traverse.h
./include/abg-viz-dot.h
./include/abg-viz-svg.h
./include/abg-workers.h
./include/abg-comp-filter.h
./include/abg-corpus.h
./include/abg-viz-common.h
./include/abg-writer.h
./include/Makefile.am
./include/abg-config.h
./include/abg-reader.h
./include/abg-version.h.in
./scripts/dot_to_png.sh
./scripts/dot_to_svg.sh
./scripts/make-verbose.sh
./scripts/svg_to_plain_svg.sh
./scripts/svg_to_png_and_pdf.sh
./src/abg-corpus.cc
./src/abg-default-reporter.cc
./src/abg-diff-utils.cc
./src/abg-dwarf-reader.cc
./src/abg-hash.cc
./src/abg-ini.cc
./src/abg-internal.h
./src/abg-ir-priv.h
./src/abg-leaf-reporter.cc
./src/abg-libzip-utils.cc
./src/abg-reporter-priv.cc
./src/abg-suppression-priv.h
./src/abg-viz-svg.cc
./src/abg-workers.cc
./src/abg-writer.cc
./src/abg-elf-helpers.cc
./src/abg-elf-helpers.h
./src/abg-regex.cc
./src/Makefile.am
./src/abg-viz-common.cc
./src/abg-suppression.cc
./src/abg-tools-utils.cc
./src/abg-traverse.cc
./src/abg-comp-filter.cc
./src/abg-comparison-priv.h
./src/abg-comparison.cc
./src/abg-config.cc
./src/abg-corpus-priv.h
./src/abg-ir.cc
./src/abg-libxml-utils.cc
./src/abg-reader.cc
./src/abg-reporter-priv.h
./src/abg-viz-dot.cc
./tests/data/Makefile.am
./tests/lib/catch.cc
./tests/runtestdefaultsupprs.py.in
./tests/runtestfedabipkgdiffpy3.sh.in
./tests/mockfedabipkgdiff.in
./tests/test-abicompat.cc
./tests/print-diff-tree.cc
./tests/test-utils.h
./tests/test-cxx-compat.cc
./tests/test-elf-helpers.cc
./tests/test-symtab.cc
./tests/Makefile.am
./tests/runtestcanonicalizetypes.sh.in
./tests/runtestdefaultsupprspy3.sh.in
./tests/update-test-output.py
./tests/runtestfedabipkgdiff.py.in
./tests/test-ir-walker.cc
./tests/test-kmi-whitelist.cc
./tests/test-lookup-syms.cc
./tests/test-read-write.cc
./tests/test-tools-utils.cc
./tests/test-utils.cc
./tests/test-write-read-archive.cc
./tests/test-alt-dwarf-file.cc
./tests/test-annotate.cc
./tests/test-core-diff.cc
./tests/test-diff-dwarf-abixml.cc
./tests/test-diff-dwarf.cc
./tests/test-diff-filter.cc
./tests/test-diff-pkg.cc
./tests/test-diff-suppr.cc
./tests/test-diff2.cc
./tests/test-dot.cc
./tests/test-ini.cc
./tests/test-read-dwarf.cc
./tests/test-svg.cc
./tests/test-types-stability.cc
./tests/test-abidiff-exit.cc
./tests/test-abidiff.cc
./tools/abiar.cc
./tools/abicompat.cc
./tools/abidiff.cc
./tools/abidw.cc
./tools/abilint.cc
./tools/abipkgdiff.cc
./tools/abisym.cc
./tools/binilint.cc
./tools/fedabipkgdiff
./tools/kmidiff.cc
./tools/Makefile.am
./update-copyright.sh
./.clang-format
./configure.ac
./Makefile.am
./default.abignore