This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]