Skip to content
Snippets Groups Projects
Commit a041cdc9 authored by drow's avatar drow
Browse files

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114271 138bc75d-0d04-0410-961f-82ee72b054a4
parent 6833eae4
No related merge requests found
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.
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment