aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@codesourcery.com>2006-05-31 15:48:05 +0000
committerDaniel Jacobowitz <drow@gcc.gnu.org>2006-05-31 15:48:05 +0000
commit5dd59f65cae29a0f1607598002405d488d2602a4 (patch)
tree9a67c316c5f529f90ced2ff04c699f8e85fad122 /contrib
parent54aefc3672508e39831436eb84956f93d81713db (diff)
downloadgcc-5dd59f65cae29a0f1607598002405d488d2602a4.zip
gcc-5dd59f65cae29a0f1607598002405d488d2602a4.tar.gz
gcc-5dd59f65cae29a0f1607598002405d488d2602a4.tar.bz2
* texi2pod.pl: Correct handling of absolute @include.
From-SVN: r114271
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/texi2pod.pl6
2 files changed, 8 insertions, 2 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 1583757..4673135 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -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.
diff --git a/contrib/texi2pod.pl b/contrib/texi2pod.pl
index 57d1d5b..ed0d102 100755
--- a/contrib/texi2pod.pl
+++ b/contrib/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;