Marcel Telka
2022-10-17 024b24abd2b8eeac8bf077c1a9435c773534bef9
tools/license-detector: make BSD-3-Clause detection more generic

2 files modified
9 ■■■■■ changed files
components/perl/Socket6/perl-integrate-module.conf 2 ●●● patch | view | raw | blame | history
tools/licenses/BSD-3-Clause 7 ●●●●● patch | view | raw | blame | history
components/perl/Socket6/perl-integrate-module.conf
@@ -14,5 +14,5 @@
#
%hook-no-license%
cat "$SOURCE_DIR/README" | gsed -e '0,/^5\. Copyright$/d' -e '/./,$!d' > "$DISTRIBUTION.license"
cat "$SOURCE_DIR/README" | gsed -e '0,/^5\. Copyright$/d' -e '/./,$!d' -e 's/^\([123]\)/\n\1/' > "$DISTRIBUTION.license"
USE_DEFAULT_PERL_LICENSE=0
tools/licenses/BSD-3-Clause
@@ -1,8 +1,7 @@
# sed -E -n
# -e 's/3\..+(be used to endorse or promote products.*)$/REPLACEABLE \1/'
# -e 's/\*[^*]+(be used to endorse or promote products.*)$/REPLACEABLE \1/'
# -e 's/[0-9]+\. *(Redistributions)/\1/g'
# -e 's/\* *(Redistributions)/\1/g'
# -e 's/^[123]\. +//'
# -e 's/^\* +//'
# -e 's/^.*(be used to endorse or promote products.*)$/REPLACEABLE \1/'
# -e 's/``/"/g' -e "s/''/\"/g"
# -e 's/(THIS SOFTWARE IS PROVIDED BY).*("AS IS" AND ANY).*(OR IMPLIED WARRANTIES)/\1 REPLACEABLE \2 REPLACEABLE \3/'
# -e 's/(IN NO EVENT SHALL).*(BE LIABLE)/\1 REPLACEABLE \2/'