summaryrefslogtreecommitdiff
path: root/scripts/pull-and-verify.sh
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2010-12-14 22:28:12 +0100
committerLeif Johansson <leifj@sunet.se>2010-12-14 22:28:12 +0100
commitce05f0f49dc7a0ae2c3f7d312fa0d7f1b76e4c3c (patch)
treedf4f7530137b325758202bc19da474e53b078178 /scripts/pull-and-verify.sh
parent62a7b0139f8e0846a4d4d8fbc9cc6f180133a295 (diff)
cleanup the entitydescriptor
Diffstat (limited to 'scripts/pull-and-verify.sh')
-rwxr-xr-xscripts/pull-and-verify.sh3
1 files changed, 3 insertions, 0 deletions
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