]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* texi2pod.pl: Correct handling of absolute @include.
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 May 2006 15:48:05 +0000 (15:48 +0000)
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 May 2006 15:48:05 +0000 (15:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114271 138bc75d-0d04-0410-961f-82ee72b054a4

contrib/ChangeLog
contrib/texi2pod.pl

index 1583757d1fb30285651c8dff8a02efea35a5005d..467313571817cddc25903e8db17555c069721c16 100644 (file)
@@ -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.
index 57d1d5bcd63202ec8d9358863f7fdf39249900d9..ed0d102a1a59e3d76523910ee33db72c47030f34 100755 (executable)
@@ -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;