aboutsummaryrefslogtreecommitdiff
path: root/utils/scancpan
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2018-10-26 05:27:40 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-28 15:16:07 +0100
commit5b7563f3d64b728a5bb8f84061b1d728605012da (patch)
tree7b545bb16d1281024d9fee730be957bbb2e23a9c /utils/scancpan
parentb4501ca80d9c02984e5d0715b999d8d638cda544 (diff)
downloadbuildroot-5b7563f3d64b728a5bb8f84061b1d728605012da.tar.gz
buildroot-5b7563f3d64b728a5bb8f84061b1d728605012da.tar.bz2
scancpan: also use README.md as default license file
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'utils/scancpan')
-rwxr-xr-xutils/scancpan3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/scancpan b/utils/scancpan
index 7c1e4236f9..e77863de34 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -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;
}