|
2 | 2 | #################################################################
|
3 | 3 | # copyright.pl -- update copyright notices throughout the source tree, idempotently.
|
4 | 4 | #
|
5 |
| -# Copyright (c) 2011, PostgreSQL Global Development Group |
| 5 | +# Copyright (c) 2011-2012, PostgreSQL Global Development Group |
6 | 6 | #
|
7 | 7 | # src/tools/copyright.pl
|
8 | 8 | #################################################################
|
|
23 | 23 | find({wanted=> \&wanted,no_chdir=> 1},'.');
|
24 | 24 |
|
25 | 25 | subwanted {
|
| 26 | +# prevent corruption of git indexes, ./.git |
| 27 | +if ($File::Find::name =~m{^\./\.git$}) |
| 28 | + { |
| 29 | +$File::Find::prune = 1; |
| 30 | +return; |
| 31 | + } |
| 32 | + |
26 | 33 | returnif !-f$File::Find::name ||-l$File::Find::name;
|
27 | 34 |
|
28 | 35 | my@lines;
|
|