OSDN Git Service

2004-05-21 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / maintainer-scripts / maintainer-addresses
1 #! /usr/bin/perl -w -T
2 #
3 # Extract all maintainers' addresses from the GCC MAINTAINERS file, only
4 # skipping those addresses specified in $OMIT.
5
6 # Copyright (c) 2003 Free Software Foundation.
7 #
8 # Written by Gerald Pfeifer <gerald@pfeifer.com>, June 2003/October 2003
9 #
10 # This script is Free Software, and it can be copied, distributed and
11 # modified as defined in the GNU General Public License.  A copy of
12 # its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
13
14 my $OMIT='rms@gnu.org|config-patches@gnu.org';
15
16 ( @ARGV == 1  &&  -e $ARGV[0] ) || die "usage: $0 MAINTAINERS";
17
18 while( <> ) {
19   chomp;
20
21   if( /([\w\d.+-]+@[\w\d.-]+)/ ) {
22     my $addr=$1;
23     printf $addr."\n" if( not $addr =~ /$OMIT/ );
24   }
25 }