utils/scancpan: handles README.pod as license file
authorFrancois Perrad <fperrad@gmail.com>
Sun, 6 Dec 2020 06:22:49 +0000 (07:22 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 29 Dec 2020 22:00:45 +0000 (23:00 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
utils/scancpan

index 327a58fc7868efe5105f4ad430e052474320357e..a1ec794edd57de43883e8955d1560c6a3cfad134 100755 (executable)
@@ -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;
 }