aboutsummaryrefslogtreecommitdiff
path: root/support/scripts
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2015-10-26 18:45:01 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2015-10-26 22:56:05 +0100
commite2aff3d7f5446a3d59bd9a61a93a352f9ab59d40 (patch)
tree54bfe4f41f842d5a5e496bec0f7fbc9343a1a95c /support/scripts
parent0a2d217826d64ac0f13dcb26499a077b864ba2f3 (diff)
downloadbuildroot-e2aff3d7f5446a3d59bd9a61a93a352f9ab59d40.tar.gz
buildroot-e2aff3d7f5446a3d59bd9a61a93a352f9ab59d40.tar.bz2
scancpan: README as default license file
add this heuristic when no specific license file is found Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/scripts')
-rwxr-xr-xsupport/scripts/scancpan3
1 files changed, 3 insertions, 0 deletions
diff --git a/support/scripts/scancpan b/support/scripts/scancpan
index 1835fea378..0436d2a4b9 100755
--- a/support/scripts/scancpan
+++ b/support/scripts/scancpan
@@ -544,6 +544,9 @@ sub find_license_files {
next if m|/|;
push @license_files, $_ if m/(ARTISTIC|COPYING|COPYRIGHT|LICENSE)/i;
}
+ if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {
+ @license_files = ($1);
+ }
return \@license_files;
}