From d1286ef327962d9fecc4a9e76d248a7758207d5f Mon Sep 17 00:00:00 2001
From: Marcel Telka <marcel@telka.sk>
Date: Tue, 16 Aug 2022 14:41:58 +0200
Subject: [PATCH] tools/perl-integrate-module: detect GPL-2.0-or-later

---
 tools/perl-integrate-module |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/perl-integrate-module b/tools/perl-integrate-module
index 07eaee6..185076e 100755
--- a/tools/perl-integrate-module
+++ b/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
 

--
Gitblit v1.9.3