summaryrefslogtreecommitdiff
path: root/Makefile.validate
blob: cc4848bc060247430cf44a646e91f0e88bbbb9e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
EDUGAIN=$(patsubst swamid-edugain/%.xml,.time/%.validate,$(wildcard swamid-edugain/*.xml))
SWAMDI20=$(patsubst swamid-2.0/%.xml,.time/%.validate,$(wildcard swamid-2.0/*.xml))
TESTING=$(patsubst swamid-testing/%.xml,.time/%.validate,$(wildcard swamid-testing/*.xml))

all: validate

validate: $(EDUGAIN) $(SWAMDI20) $(TESTING)

.time/%.validate: swamid-edugain/%.xml
	@docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@

.time/%.validate: swamid-2.0/%.xml
	@docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@

.time/%.validate: swamid-testing/%.xml
	@docker exec swamid-metadata-sp /var/www/scripts/importXML.bash /opt/metadata/$< Prod | grep -v "Import -> Added to db" > $@