OSDN Git Service

* texi2pod.pl: Correct handling of absolute @include.
authordrow <drow>
Wed, 31 May 2006 15:47:48 +0000 (15:47 +0000)
committerdrow <drow>
Wed, 31 May 2006 15:47:48 +0000 (15:47 +0000)
etc/ChangeLog
etc/texi2pod.pl

index 09d002f..a5959c7 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 57d1d5b..ed0d102 100644 (file)
@@ -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;