3 # Check if the included files are all available in the current directory
7 if [ -z "$file" ] ; then
8 echo "Usage: $0 file.tex"
9 echo "Checks if the included graphics in the TeX file are available in "
10 echo "the current directory"
14 if [ ! -r "$file" ] ; then
15 echo "ERROR: Cannot read $file"
20 grep includegraphics $file |
21 perl -ne 'print $1."\n" if /.*\{(\w+\.pdf)\}/' |
24 [ ! -e "$graph" ] && echo "WARNING: Included graphic file $graph is not available in the current directory." >&2