aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2019-10-29 05:33:08 +0100
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-10-29 23:46:46 +0100
commitf42e355b56df634939d6dd1b4816c764add563ad (patch)
tree273861b8a722200b322199d43519969cdac47c31
parent9a645081a52ee5e8108ce3dac9e3b2a7e07848ad (diff)
downloadbuildroot-f42e355b56df634939d6dd1b4816c764add563ad.tar.gz
buildroot-f42e355b56df634939d6dd1b4816c764add563ad.tar.bz2
utils/scancpan: handle LICENCE spelling
License files are sometimes called LICENCE, so support that as well. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
-rwxr-xr-xutils/scancpan2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/scancpan b/utils/scancpan
index 484ccaca95..16e495bdac 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -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)/i;
+ push @license_files, $_ if m/(ARTISTIC|COPYING|COPYRIGHT|LICENSE|LICENCE)/i;
}
if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {
@license_files = ($1);