This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: maintainer-scripts/maintainer-addresses
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 2 Nov 2003 01:04:12 +0100 (CET)
- Subject: PATCH: maintainer-scripts/maintainer-addresses
Sometimes we need all e-mail addresses of GCC maintainers (per our
MAINTAINERS file), for example to send important information.
This scripts extracts them, more or less nicely. Per discussion on
overseers@gcc.gnu.org.
Committed.
Gerald
2003-11-02 Gerald Pfeifer <gerald@pfeifer.com>
* maintainer-addresses: New script.
Index: maintainer-scripts/maintainer-addresses
===================================================================
RCS file: maintainer-scripts/maintainer-addresses
diff -N maintainer-addresses
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ maintainer-addresses 2 Nov 2003 00:01:14 -0000
@@ -0,0 +1,25 @@
+#! /usr/bin/perl -w -T
+#
+# Extract all maintainers' addresses from the GCC MAINTAINERS file, only
+# skipping those addresses specified in $OMIT.
+#
+# Copyright (c) 2003 Free Software Foundation.
+#
+# Written by Gerald Pfeifer <gerald@pfeifer.com>, June 2003/October 2003
+#
+# This script is Free Software, and it can be copied, distributed and
+# modified as defined in the GNU General Public License. A copy of
+# its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
+
+my $OMIT='rms@gnu.org|config-patches@gnu.org';
+
+( @ARGV == 1 && -e $ARGV[0] ) || die "usage: $0 MAINTAINERS";
+
+while( <> ) {
+ chomp;
+
+ if( /([\w\d.+-]+@[\w\d.-]+)/ ) {
+ my $addr=$1;
+ printf $addr."\n" if( not $addr =~ /$OMIT/ );
+ }
+}