tools/license-detector: make BSD-3-Clause detection more generic
| | |
| | | # |
| | | |
| | | %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 |
| | |
| | | # 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/' |