From ec19918f051d0f030e3fcb66a5e95d688c5e46c7 Mon Sep 17 00:00:00 2001 From: Marcel Telka <marcel@telka.sk> Date: Mon, 24 Oct 2022 20:20:18 +0200 Subject: [PATCH] tools/license-detector: Improve LGPL-2.1-only detection --- tools/license-detector | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/tools/license-detector b/tools/license-detector index 0791e1d..7c9f3b9 100755 --- a/tools/license-detector +++ b/tools/license-detector @@ -81,11 +81,6 @@ [[ -n "$L" ]] && L="$L OR " ; L="$L$D" fi -if grep -A 1 "GNU Lesser General Public License" "$F" | grep -q "Version 2\.1, February 1999" ; then - D="LGPL-2.1-only" - [[ -n "$L" ]] && L="$L OR " ; L="$L$D" -fi - for l in "$WS_TOOLS"/licenses/* ; do [[ -f "$l" ]] || continue @@ -94,7 +89,7 @@ CMD="dos2unix -ascii" CMD="$CMD | awk '/^#/{next}/^\$/{\$0=\"\\n\"}1' ORS=' '" - CMD="$CMD | sed -E -e 's/ +/ /g' -e 's/^ //' -e 's/ \$//' -e '/^\$/d'" + CMD="$CMD | sed -E -e 's/[[:space:]]+/ /g' -e 's/^ //' -e 's/ \$//' -e '/^\$/d'" CMD="$CMD$LICCMD" CMD="$CMD | tr ' ' '\\n' | gfmt -w 80" -- Gitblit v1.9.3