* Follow \bibliographystyle to find .bst files.

svn path=/nixpkgs/trunk/; revision=5590
This commit is contained in:
Eelco Dolstra 2006-07-05 13:39:22 +00:00
parent 506f113378
commit a4d3fde9d5

View file

@ -54,6 +54,10 @@ while (scalar @workset > 0) {
my $fn2 = $2;
die "absolute path! $fn2" if substr($fn2, 0, 1) eq "/";
push @workset, $path . "/" . $fn2 . ".cls";
} elsif (/\\bibliographystyle\{(.*)\}/) {
my $fn2 = $1;
die "absolute path! $fn2" if substr($fn2, 0, 1) eq "/";
push @workset, $path . "/" . $fn2 . ".bst";
} elsif (/\\bibliography\{(.*)\}/) {
foreach my $bib (split /,/, $1) {
$bib =~ s/^\s+//; # remove leading / trailing whitespace