From: Daniel Jacobowitz Date: Wed, 31 May 2006 15:47:48 +0000 (+0000) Subject: * texi2pod.pl: Correct handling of absolute @include. X-Git-Tag: newlib-csl-sourcerygxx-3_4_4-25~413 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=261dd81b2625049ebc3fc4a4a7ffab0be483319a;p=thirdparty%2Fbinutils-gdb.git * texi2pod.pl: Correct handling of absolute @include. --- diff --git a/etc/ChangeLog b/etc/ChangeLog index 09d002f245e..a5959c70a70 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,7 @@ +2006-05-31 Daniel Jacobowitz + + * texi2pod.pl: Correct handling of absolute @include. + 2006-05-02 Daniel Jacobowitz * texi2pod.pl: Handle -I. diff --git a/etc/texi2pod.pl b/etc/texi2pod.pl index 57d1d5bcd63..ed0d102a1a5 100644 --- a/etc/texi2pod.pl +++ b/etc/texi2pod.pl @@ -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;