[Po4a-commits] po4a/lib/Locale/Po4a TeX.pm,1.39,1.40
Nicolas FRAN??OIS
po4a-devel@lists.alioth.debian.org
Sat, 26 Feb 2005 00:44:50 +0000
Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv2801/lib/Locale/Po4a
Modified Files:
TeX.pm
Log Message:
Included files are specified with or without the .tex extension.
Index: TeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TeX.pm,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- TeX.pm 26 Feb 2005 00:40:48 -0000 1.39
+++ TeX.pm 26 Feb 2005 00:44:48 -0000 1.40
@@ -800,7 +800,10 @@
defined($ENV{"TEXINPUTS"})?
split(/:/, $ENV{"TEXINPUTS"}):
".")) {
- if (-r "$_/$newfilename.tex") {
+ if (-r "$_/$newfilename") {
+ $newfilename = "$_/$newfilename";
+ last;
+ } elsif (-r "$_/$newfilename.tex") {
$newfilename = "$_/$newfilename.tex";
last;
}