From ce05f0f49dc7a0ae2c3f7d312fa0d7f1b76e4c3c Mon Sep 17 00:00:00 2001
From: Leif Johansson <leifj@sunet.se>
Date: Tue, 14 Dec 2010 22:28:12 +0100
Subject: cleanup the entitydescriptor

---
 scripts/pull-and-verify.sh | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'scripts')

diff --git a/scripts/pull-and-verify.sh b/scripts/pull-and-verify.sh
index ab94c7e7..c53fd66a 100755
--- a/scripts/pull-and-verify.sh
+++ b/scripts/pull-and-verify.sh
@@ -18,9 +18,12 @@ rsync -avz $TMPD/ $DIR
 (
 echo '<?xml version="1.0"?>'
 echo "<EntitiesDescriptor xmlns=\"urn:oasis:names:tc:SAML:2.0:metadata\" xmlns:xi=\"http://www.w3.org/2001/XInclude\" Name=\"http://md.swamid.se/md/$3.xml\">"
+T=`mktemp`
 for md in $3/*.xml; do
+   xsltproc xslt/clean-entitydescriptor.xsl $md > $T && mv $T $md
    echo "<xi:include href=\"$md\"/>"
 done
+rm -f $T
 echo "</EntitiesDescriptor>"
 ) > $DIR.mxml
 git add $DIR.mxml $DIR
-- 
cgit v1.2.3