Skip to content

Commit 024b24a

Browse files
authored
tools/license-detector: make BSD-3-Clause detection more generic
1 parent c0ca61c commit 024b24a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

components/perl/Socket6/perl-integrate-module.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
#
1515

1616
%hook-no-license%
17-
cat "$SOURCE_DIR/README" | gsed -e '0,/^5\. Copyright$/d' -e '/./,$!d' > "$DISTRIBUTION.license"
17+
cat "$SOURCE_DIR/README" | gsed -e '0,/^5\. Copyright$/d' -e '/./,$!d' -e 's/^\([123]\)/\n\1/' > "$DISTRIBUTION.license"
1818
USE_DEFAULT_PERL_LICENSE=0

tools/licenses/BSD-3-Clause

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# sed -E -n
2-
# -e 's/3\..+(be used to endorse or promote products.*)$/REPLACEABLE \1/'
3-
# -e 's/\*[^*]+(be used to endorse or promote products.*)$/REPLACEABLE \1/'
4-
# -e 's/[0-9]+\. *(Redistributions)/\1/g'
5-
# -e 's/\* *(Redistributions)/\1/g'
2+
# -e 's/^[123]\. +//'
3+
# -e 's/^\* +//'
4+
# -e 's/^.*(be used to endorse or promote products.*)$/REPLACEABLE \1/'
65
# -e 's/``/"/g' -e "s/''/\"/g"
76
# -e 's/(THIS SOFTWARE IS PROVIDED BY).*("AS IS" AND ANY).*(OR IMPLIED WARRANTIES)/\1 REPLACEABLE \2 REPLACEABLE \3/'
87
# -e 's/(IN NO EVENT SHALL).*(BE LIABLE)/\1 REPLACEABLE \2/'

0 commit comments

Comments
 (0)