Skip to contentSkip to conversation

utils/scancpan: handles README.pod as license file

PATCH New Francois Perrad 2 participants 3 messages Dec 6, 2020 – Dec 29, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 utils/scancpan: handles README.pod as license file

---
 utils/scancpan | 3 +++
 1 file changed, 3 insertions(+)
utils/scancpan +3 -0
index 327a58fc7..a1ec794ed 100755
@@ -575,6 +575,9 @@ sub find_license_files {
     if (scalar @license_files == 0 && $manifest =~ m/(README\.md)[\n\s]/i) {
         @license_files = ($1);
     }
+    if (scalar @license_files == 0 && $manifest =~ m/(README\.pod)[\n\s]/i) {
+        @license_files = ($1);
+    }
     return @license_files;
 }
 
Signature · 1 line
2.27.0
#1 lore raw

PATCH 2/2 utils/scancpan: add GPL* as license file

---
 utils/scancpan | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/scancpan +1 -1
index a1ec794ed..3ce3203bd 100755
@@ -567,7 +567,7 @@ sub find_license_files {
     foreach (split /\n/, $manifest) {
         next if m|/|;
         s|\s+.*$||;
-        push @license_files, $_ if m/(ARTISTIC|COPYING|COPYRIGHT|LICENSE|LICENCE)/i;
+        push @license_files, $_ if m/(ARTISTIC|COPYING|COPYRIGHT|GPL\S*|LICENSE|LICENCE)/i;
     }
     if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {
         @license_files = ($1);
Signature · 1 line
2.27.0