summaryrefslogtreecommitdiff
path: root/metadata/Makefile.validate-debian
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2025-02-27 14:59:52 +0100
committerBjörn Mattsson <bjorn@sunet.se>2025-02-27 14:59:52 +0100
commit94bb0684f57a09b6ee9c2f97c1b50c36ca8e5235 (patch)
tree2be7a5598fb6e1197409b31e99361838318f50c4 /metadata/Makefile.validate-debian
parent88d1642cde6300b8b75ebc5484c1005e27174e13 (diff)
parent3426cc592747c93243432965dd2628a197e5a205 (diff)
Merge branch 'master' of git.swamid.se:swamid-metadatamd-2025-02-27-v01
Diffstat (limited to 'metadata/Makefile.validate-debian')
-rw-r--r--metadata/Makefile.validate-debian12
1 files changed, 12 insertions, 0 deletions
diff --git a/metadata/Makefile.validate-debian b/metadata/Makefile.validate-debian
new file mode 100644
index 00000000..d0782cf4
--- /dev/null
+++ b/metadata/Makefile.validate-debian
@@ -0,0 +1,12 @@
+EDUGAIN=$(patsubst swamid-edugain/%.xml,.time/%.validate,$(wildcard swamid-edugain/*.xml))
+SWAMDI20=$(patsubst swamid-2.0/%.xml,.time/%.validate,$(wildcard swamid-2.0/*.xml))
+
+all: validate
+
+validate: $(EDUGAIN) $(SWAMDI20)
+
+.time/%.validate: swamid-edugain/%.xml
+ @docker exec metadata-sp-metadata-sp-1 /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@
+
+.time/%.validate: swamid-2.0/%.xml
+ @docker exec metadata-sp-metadata-sp-1 /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@