Marcel Telka
2022-08-16 d1286ef327962d9fecc4a9e76d248a7758207d5f
tools/perl-integrate-module: detect GPL-2.0-or-later

1 files modified
1 ■■■■ changed files
tools/perl-integrate-module 1 ●●●● patch | view | raw | blame | history
tools/perl-integrate-module
@@ -263,6 +263,7 @@
    if grep -i -A 1 "GENERAL PUBLIC LICENSE" "$F" | grep -q "Version 2, June 1991" ; then
        D="GPL-2.0-only"
        grep -A 2 "GNU General Public License as published by the" "$F" | grep -q "or (at your option) any" && D="GPL-2.0-or-later"
        [[ -n "$L" ]] && L="$L OR " ; L="$L$D"
    fi