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.