Add automated link checking script to the Maintenance script makefile.
authorDean Camera <dean@fourwalledcubicle.com>
Fri, 23 Mar 2012 22:12:16 +0000 (22:12 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Fri, 23 Mar 2012 22:12:16 +0000 (22:12 +0000)
Maintenance/makefile

index 137b802..5cce2bf 100644 (file)
@@ -36,6 +36,13 @@ check-documentation-placeholders:
        fi;\r
        @echo Done.\r
 \r
        fi;\r
        @echo Done.\r
 \r
+# Test all generated documentation for any bad links\r
+check-documentation-links:\r
+       @for html_file in `find $(LUFA_ROOT) -name *.html`; do \\r
+               echo Checking $$html_file...; \\r
+               cat $$html_file | grep -v "doxygen.org" | grep -v "fourwalledcubicle.com" | wget -nv --referer=www.lufa-lib.org --user-agent="lufa-link-check-script" -B $(dir $$html_file) --spider --force-html --input-file=-; \\r
+       done;\r
+\r
 # Validate the working branch - compile all documentation, demos/projects/examples and run build tests\r
 validate-branch:\r
        make -s -C $(LUFA_ROOT) doxygen\r
 # Validate the working branch - compile all documentation, demos/projects/examples and run build tests\r
 validate-branch:\r
        make -s -C $(LUFA_ROOT) doxygen\r