10 foreach my $name (@ARGV) {
13 $basename =~ s/\.tex$//;
14 open FH
, "<$basename.log";
16 $file = $1 if (m/^! LaTeX Error: File `(.+)' not found.$/);
17 if (m/^I could not locate the file with any of these extensions:$/) {
24 $file .= (split /,/)[0];
31 open FH
, "<$basename.fls";
33 if (m/^INPUT \.\/(.+\
.tex
)$/) {
34 push @files, $1 unless ($1 eq $name);
41 print "$basename.dvi
: @files\n";
44 print ".depends
: @texfiles\n";