File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
# !/usr/bin/env perl
2
2
#
3
3
# Copyright (c) 2010-2014 Cisco Systems, Inc. All rights reserved.
4
- # Copyright (c) 2016 Intel, Inc. All rights reserved.
4
+ # Copyright (c) 2016-2017 Intel, Inc. All rights reserved.
5
5
# $COPYRIGHT$
6
6
#
7
7
67
67
my $my_search_name = " Cisco" ;
68
68
my $my_formal_name = " Cisco Systems, Inc. All rights reserved." ;
69
69
70
+ # Protected directories
71
+ my @protected = qw( pmi2x/pmix/ hwloc1113/hwloc/ libevent2022/libevent/) ;
72
+
70
73
# Override the defaults if some values are set in the environment
71
74
$my_search_name = $ENV {OMPI_COPYRIGHT_SEARCH_NAME }
72
75
if (defined ($ENV {OMPI_COPYRIGHT_SEARCH_NAME }));
@@ -145,6 +148,22 @@ sub quiet_print {
145
148
146
149
# Examine each of the files and see if they need an updated copyright
147
150
foreach my $f (@files ) {
151
+
152
+ # ignore embedded copies of external codes as we shouldn't
153
+ # be overwriting their copyrights - if someone actually
154
+ # modified any of those files, they can manually update
155
+ # the copyright
156
+ my $ignore = 0;
157
+ foreach my $p (@protected ) {
158
+ if (index ($f , $p ) != -1) {
159
+ quiet_print " Ignoring protected file $f \n " ;
160
+ $ignore = 1;
161
+ last ;
162
+ }
163
+ }
164
+ if (1 == $ignore ) {
165
+ next ;
166
+ }
148
167
quiet_print " Processing added/changed file: $f \n " ;
149
168
open (FILE, $f ) || die " Can't open file: $f " ;
150
169
You can’t perform that action at this time.
0 commit comments