X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/7d02443e21b178d12bdc41c9e132b68a0ecef11a..0c8a433cd0ed43ea798397b8464ada4994a6d054:/Makefile diff --git a/Makefile b/Makefile index 15294f9..b0a37a4 100644 --- a/Makefile +++ b/Makefile @@ -118,6 +118,11 @@ lint-es: $(SOURCE).nb.xml lint-nb: $(SOURCE).nb.xml xmllint $(XMLLINTOPTS) $^ +check-urls: + retval=0; for u in $$(perl -n -e'// && print "$$1\n"' MadewithCreativeCommonsmostup-to-dateversion.xml | sort -u); do \ + HEAD -H "User-Agent: Docbook XML URL checker" "$$u" > /dev/null || echo "error fetching $$u"; retval=1; \ + done; exit $$retval + # Experimental build rule to test Docbook XSL + FOP processor xsl-fo-%.pdf: %.xml xsltproc --output $(subst .pdf,.fo,$@) \