diff options
author | leifj <leifj@0878fbc5-a6f2-46f6-b174-cb7b08c221d1> | 2010-07-15 12:07:16 +0000 |
---|---|---|
committer | leifj <leifj@0878fbc5-a6f2-46f6-b174-cb7b08c221d1> | 2010-07-15 12:07:16 +0000 |
commit | 2f01cfbfa26a92c093c7feb7b60106a125a515e6 (patch) | |
tree | 916dec35dab3bb3ad2984a9814e8c6b3af31b07e /NewMakefile | |
parent | 6f6e08cfd5987f4f6bf8f55775dfbbfa5926cbb0 (diff) |
makefile for new publishers
git-svn-id: svn+ssh://svn.it.su.se/svn/swamid-metadata/trunk@372 0878fbc5-a6f2-46f6-b174-cb7b08c221d1
Diffstat (limited to 'NewMakefile')
-rw-r--r-- | NewMakefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/NewMakefile b/NewMakefile new file mode 100644 index 00000000..f6de044a --- /dev/null +++ b/NewMakefile @@ -0,0 +1,64 @@ + +KEY=/opt/swamid-credentials/swamid-signer.key +CERT=/opt/swamid-credentials/swamid-signer.crt +PASS=$(shell cat /opt/swamid-credentials/swamid-signer-pass.txt) +DEST=/opt/published-metadata + +all: update clean sign + +update: +# @svn up -q + +keys: $(KEY) $(CERT) + +sign: keys swamid nya swamid-compat nya-testing swamid-testing swamid-kalmar swamid-edugain-testing swamid-ki-sll + +urn-mace-swami.se-swamid-test-1.0-metadata.mxml: + @sed 's!http://md.swamid.se/md/swamid-1.0.xml!urn:mace:swami.se:swamid:test-1.0!g' < swamid-1.0.mxml > urn-mace-swami.se-swamid-test-1.0-metadata.mxml + +swamid-compat: urn-mace-swami.se-swamid-test-1.0-metadata.mxml + @saml-md-tool urn-mace-swami.se-swamid-test-1.0-metadata update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s urn-mace-swami.se-swamid-test-1.0-metadata-unsigned.xml && cp urn-mace-swami.se-swamid-test-1.0-metadata-unsigned.xml $(DEST)/urn-mace-swami.se-swamid-test-1.0-metadata.xml + @test -s urn-mace-swami.se-swamid-test-1.0-metadata.xml && cp urn-mace-swami.se-swamid-test-1.0-metadata.xml $(DEST)/urn-mace-swami.se-swamid-test-1.0-metadata-signed.xml + +swamid: + @saml-md-tool swamid-1.0 update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s swamid-1.0.xml && cp swamid-1.0.xml $(DEST) + @test -s swamid-1.0-unsigned.xml && cp swamid-1.0-unsigned.xml $(DEST) + +nya: + @saml-md-tool nya-1.0 update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s nya-1.0.xml && cp nya-1.0.xml $(DEST) + @test -s nya-1.0-unsigned.xml && cp nya-1.0-unsigned.xml $(DEST) + +nya-testing: + @saml-md-tool nya-1.0-testing update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s nya-1.0-testing.xml && cp nya-1.0-testing.xml $(DEST) + +swamid-testing: + @saml-md-tool swamid-1.0-testing update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s swamid-1.0-testing.xml && cp swamid-1.0-testing.xml $(DEST) + +swamid-edugain-testing: + @saml-md-tool swamid-edugain-testing-1.0 update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s swamid-edugain-testing-1.0.xml && cp swamid-edugain-testing-1.0.xml $(DEST) + +swamid-kalmar: + @saml-md-tool swamid-kalmar-1.0 update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s swamid-kalmar-1.0.xml && cp swamid-kalmar-1.0.xml $(DEST) + +swamid-ki-sll: + @saml-md-tool swamid-ki-sll-1.0 update --key=$(KEY) --cert=$(CERT) --pwd=$(PASS) + @test -s swamid-ki-sll-1.0.xml && cp swamid-ki-sll-1.0.xml $(DEST) + +test: + @xmllint --xinclude --noout --schema schema/sstc-saml-schema-metadata-2.0.xsd swamid-1.0.mxml + @xmllint --xinclude --noout --schema schema/sstc-saml-schema-metadata-2.0.xsd nya-1.0.mxml + @xmllint --xinclude --noout --schema schema/sstc-saml-schema-metadata-2.0.xsd swamid-1.0-testing.mxml + @xmllint --xinclude --noout --schema schema/sstc-saml-schema-metadata-2.0.xsd nya-1.0-testing.mxml + @xmllint --xinclude --noout --schema schema/sstc-saml-schema-metadata-2.0.xsd swamid-kalmar-1.0.mxml + @xmllint --xinclude --noout --schema schema/sstc-saml-schema-metadata-2.0.xsd swamid-ki-sll-1.0.mxml + @xmllint --xinclude --noout --schema schema/sstc-saml-schema-metadata-2.0.xsd swamid-edugain-testing-1.0.mxml + +clean: + @rm -f *.xml |