Skip to content

Commit

Permalink
Synch with metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
iay committed Jan 26, 2007
1 parent a3d0433 commit 95d7e4b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build/addresses.pl
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,25 @@
#
# 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 (<XML>) {
if (/<EmailAddress>(mailto:)?(.*)<\/EmailAddress>/) {
$metadata{$2} = 1;
}
}
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 (<XML>) {
if (/<EmailAddress>(mailto:)?(.*)<\/EmailAddress>/) {
$metadata{$2} = 1;
}
}
close XML;

#
# Now figure out the addresses we want to see in the mailing list.
Expand Down

0 comments on commit 95d7e4b

Please sign in to comment.