Use regex to define the protected files
Signed-off-by: Ralph Castain <rhc@open-mpi.org>
Этот коммит содержится в:
родитель
2f0aec709a
Коммит
665850ed69
@ -68,7 +68,12 @@ my $my_search_name = "Cisco";
|
|||||||
my $my_formal_name = "Cisco Systems, Inc. All rights reserved.";
|
my $my_formal_name = "Cisco Systems, Inc. All rights reserved.";
|
||||||
|
|
||||||
# Protected directories
|
# Protected directories
|
||||||
my @protected = qw(pmi2x/pmix/ hwloc1113/hwloc/ libevent2022/libevent/);
|
my @protected = qw(
|
||||||
|
opal\\/mca\\/pmi\\/pmix.+?\\/pmix\\/
|
||||||
|
opal\\/mca\\/hwloc\\/hwloc.+?\\/hwloc\\/
|
||||||
|
opal\\/mca\\/libevent\\/libevent.+?\\/libevent\\/
|
||||||
|
contrib\\/update-my-copyright.pl
|
||||||
|
);
|
||||||
|
|
||||||
# Override the defaults if some values are set in the environment
|
# Override the defaults if some values are set in the environment
|
||||||
$my_search_name = $ENV{OMPI_COPYRIGHT_SEARCH_NAME}
|
$my_search_name = $ENV{OMPI_COPYRIGHT_SEARCH_NAME}
|
||||||
@ -155,7 +160,7 @@ foreach my $f (@files) {
|
|||||||
# the copyright
|
# the copyright
|
||||||
my $ignore = 0;
|
my $ignore = 0;
|
||||||
foreach my $p (@protected) {
|
foreach my $p (@protected) {
|
||||||
if (index($f, $p) != -1) {
|
if (eval("\$f =~ /$p/")) {
|
||||||
quiet_print "Ignoring protected file $f\n";
|
quiet_print "Ignoring protected file $f\n";
|
||||||
$ignore = 1;
|
$ignore = 1;
|
||||||
last;
|
last;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user