diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-05-31 15:47:48 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-05-31 15:47:48 +0000 |
commit | 261dd81b2625049ebc3fc4a4a7ffab0be483319a (patch) | |
tree | ba7fc6f41fb3380fc927d806571de118c4cdf98d /etc/texi2pod.pl | |
parent | Configury changes: update src repository (binutils, gdb, and rda) to use (diff) | |
download | binutils-gdb-261dd81b2625049ebc3fc4a4a7ffab0be483319a.tar.gz binutils-gdb-261dd81b2625049ebc3fc4a4a7ffab0be483319a.tar.bz2 binutils-gdb-261dd81b2625049ebc3fc4a4a7ffab0be483319a.zip |
* texi2pod.pl: Correct handling of absolute @include.
Diffstat (limited to 'etc/texi2pod.pl')
-rw-r--r-- | etc/texi2pod.pl | 6 |
1 files changed, 4 insertions, 2 deletions
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; |