From f42e355b56df634939d6dd1b4816c764add563ad Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Tue, 29 Oct 2019 05:33:08 +0100 Subject: [PATCH] utils/scancpan: handle LICENCE spelling License files are sometimes called LICENCE, so support that as well. Signed-off-by: Francois Perrad Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- utils/scancpan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);