File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 68
68
my $my_formal_name = " Cisco Systems, Inc. All rights reserved." ;
69
69
70
70
# Protected directories
71
- my @protected = qw( pmi2x/pmix/ hwloc1113/hwloc/ libevent2022/libevent/) ;
71
+ my @protected = qw(
72
+ opal\\/mca\\/pmi\\/pmix.+?\\/pmix\\/
73
+ opal\\/mca\\/hwloc\\/hwloc.+?\\/hwloc\\/
74
+ opal\\/mca\\/libevent\\/libevent.+?\\/libevent\\/
75
+ contrib\\/update-my-copyright.pl
76
+ ) ;
72
77
73
78
# Override the defaults if some values are set in the environment
74
79
$my_search_name = $ENV {OMPI_COPYRIGHT_SEARCH_NAME }
@@ -155,7 +160,7 @@ sub quiet_print {
155
160
# the copyright
156
161
my $ignore = 0;
157
162
foreach my $p (@protected ) {
158
- if (index ( $f , $p ) != -1 ) {
163
+ if (eval ( " \$ f =~ / $p / " ) ) {
159
164
quiet_print " Ignoring protected file $f \n " ;
160
165
$ignore = 1;
161
166
last ;
You can’t perform that action at this time.
0 commit comments