scancpan: also use README.md as default license file
authorFrancois Perrad <fperrad@gmail.com>
Fri, 26 Oct 2018 03:27:40 +0000 (05:27 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 28 Oct 2018 14:16:07 +0000 (15:16 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
utils/scancpan

index 7c1e4236f9992f28be3483f2fd163e30ea36d572..e77863de34ca5cc6fcdd5654f5bd65c64d9e6918 100755 (executable)
@@ -568,6 +568,9 @@ sub find_license_files {
     if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {
         @license_files = ($1);
     }
+    if (scalar @license_files == 0 && $manifest =~ m/(README\.md)[\n\s]/i) {
+        @license_files = ($1);
+    }
     return @license_files;
 }