From 95d7e4b97ee11f068b8704d775366b5b409ac42d Mon Sep 17 00:00:00 2001 From: Ian Young Date: Fri, 26 Jan 2007 15:37:48 +0000 Subject: [PATCH] Synch with metadata. --- build/addresses.pl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/addresses.pl b/build/addresses.pl index 2c82d7f3..d733ed8a 100644 --- a/build/addresses.pl +++ b/build/addresses.pl @@ -25,7 +25,8 @@ # # Exclude support addresses using some XSLT magic. # -#open(XML,"../xml/sdss-metadata-unsigned.xml") || die "could not open input file"; +# SDSS addresses +# open(XML,"java -cp ../xalan-j_2_6_0/bin/xalan.jar org.apache.xalan.xslt.Process -IN ../xml/sdss-metadata-unsigned.xml -XSL extract_addresses.xsl|") || die "could not open input file"; while () { if (/(mailto:)?(.*)<\/EmailAddress>/) { @@ -33,6 +34,16 @@ } } close XML; +# +# UK addresses +# +open(XML,"java -cp ../xalan-j_2_6_0/bin/xalan.jar org.apache.xalan.xslt.Process -IN ../xml/ukfederation-metadata-unsigned.xml -XSL extract_addresses.xsl|") || die "could not open input file"; +while () { + if (/(mailto:)?(.*)<\/EmailAddress>/) { + $metadata{$2} = 1; + } +} +close XML; # # Now figure out the addresses we want to see in the mailing list.