This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Fix texi2pod.pl for absolute srcdir
- From: Daniel Jacobowitz <drow at false dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Wed, 31 May 2006 11:52:23 -0400
- Subject: [ob] Fix texi2pod.pl for absolute srcdir
My texi2pod patch which added -I support broke man page builds with an
absolute path to configure - it would try to open .//path/to/file instead of
/path/to/file. Committed as obvious, to GCC HEAD (4.1 is unaffected), src
HEAD, binutils 2.17, and GDB 6.5. Sorry about any inconvenience!
--
Daniel Jacobowitz
CodeSourcery
2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
* texi2pod.pl: Correct handling of absolute @include.
--- gcc/contrib/texi2pod.pl 2006-05-02 09:50:33.000000000 -0400
+++ gcc/contrib/texi2pod.pl 2006-05-31 10:51:03.000000000 -0400
@@ -239,8 +239,10 @@
# 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;