I've figured out a "minimal" patch for Override.pm and latex2html
that makes things work for me.  It still requires some work in my init 
file to get things done that are specific to the way I've laid out my
work area, but that's it.  There's still a requirement that $TEXINPUTS 
needs to contain absolute paths; that requirement can and should be
changed by absolutizing the components of $TEXINPUTS in
deal_with_texinputs().
  There are two chunks in the patch:  The first is to Override.pm and
uses Cwd::getcwd() instead of the `pwd` to get the current directory.
The second is to the main latex2html script and fixes the problem I
reported regarding my previous patch ("break" is spelled "last" in
Perl).


  -Fred

--
Fred L. Drake, Jr.
[EMAIL PROTECTED]
Corporation for National Research Initiatives
1895 Preston White Drive    Reston, VA  20191


*** latex2html/Override.pm      Mon May  4 01:15:24 1998
--- latex2html-98.1p4/Override.pm       Wed May 13 09:50:00 1998
***************
*** 189,198 ****
         $_ = Win32::GetCwd();
         $_ =~ s/\\/${dd}/g;
      } else {
!        $_  = `pwd`;
!        die "'pwd' failed (out of memory?)\n"
!            unless length;
!        chop;
      }
      $_;
  }
--- 189,195 ----
         $_ = Win32::GetCwd();
         $_ =~ s/\\/${dd}/g;
      } else {
!       $_ = Cwd::getcwd();
      }
      $_;
  }
*** latex2html/latex2html       Tue May  5 08:30:28 1998
--- latex2html-98.1p4/latex2html        Wed May 13 10:06:28 1998
***************
*** 1142,1148 ****
      if (!$found) {
        foreach $texpath (split /$envkey/, $TEXINPUTS ) {
            $file = "$texpath$dd$extfile.$ext";
!           break if ($found = (-f $file));
        }
      }
      if ( $found ) {
--- 1142,1148 ----
      if (!$found) {
        foreach $texpath (split /$envkey/, $TEXINPUTS ) {
            $file = "$texpath$dd$extfile.$ext";
!           last if ($found = (-f $file));
        }
      }
      if ( $found ) {

Reply via email to