From: Petter Reinholdtsen Date: Sun, 11 Feb 2018 07:20:58 +0000 (+0100) Subject: Add new target check-urls to visit all URLs in the manuscript. X-Git-Tag: es-printed~550 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/0c8a433cd0ed43ea798397b8464ada4994a6d054 Add new target check-urls to visit all URLs in the manuscript. --- 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,$@) \