]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Check for images as well. At least partially, since we only search one
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Feb 2000 14:52:41 +0000 (14:52 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Feb 2000 14:52:41 +0000 (14:52 +0000)
line at a time, and tags like <img \n src="..."> can escape.

git-svn-id: https://svn.dealii.org/trunk@2501 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/auto/scripts/validate-xrefs.pl

index c0e47942f4ba6a7defcb9c0686b92bc60dd6b30c..af1dd9d4c291bd389e6e71832464e17aec35b5e0 100644 (file)
@@ -78,7 +78,15 @@ foreach $filename (@ARGV) {
                die "---Local file `$link' not found in file `$filename'\n"
                    unless ((-r $link) && (-f $link));
            }
-               }
-               }
+       }
+
+       # check whether references to images are valid
+       while ( /img\s+src=\"?(.*?)[\s\"]/gi ) {
+           # check whether the file for the image is present
+           $link = $1;
+           die "---Local image `$link' not found in file `$filename'\n"
+               unless ((-r $link) && (-f $link));
+       }
+   }
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.