* texi2pod.pl: Correct handling of absolute @include.

From-SVN: r114271
This commit is contained in:
Daniel Jacobowitz 2006-05-31 15:48:05 +00:00 committed by Daniel Jacobowitz
parent 54aefc3672
commit 5dd59f65ca
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
* texi2pod.pl: Correct handling of absolute @include.
2006-05-02 Daniel Jacobowitz <dan@codesourcery.com>
* texi2pod.pl: Handle -I.

View File

@ -239,8 +239,10 @@ while(<$inf>) {
# Try cwd and $ibase, then explicit -I paths.
$done = 0;
foreach $path (".", $ibase, @ipath) {
open($inf, "<" . $path . "/" . $file) and ($done = 1, last);
foreach $path ("", $ibase, @ipath) {
$mypath = $file;
$mypath = $path . "/" . $mypath if ($path ne "");
open($inf, "<" . $mypath) and ($done = 1, last);
}
die "cannot find $file" if !$done;
next;