diff options
author | Leif Johansson <leifj@sunet.se> | 2010-12-14 22:28:12 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2010-12-14 22:28:12 +0100 |
commit | ce05f0f49dc7a0ae2c3f7d312fa0d7f1b76e4c3c (patch) | |
tree | df4f7530137b325758202bc19da474e53b078178 /scripts | |
parent | 62a7b0139f8e0846a4d4d8fbc9cc6f180133a295 (diff) |
cleanup the entitydescriptor
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pull-and-verify.sh | 3 |
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 |