]> git.lyx.org Git - features.git/commitdiff
more win32 port integration
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Oct 2001 12:37:39 +0000 (12:37 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Oct 2001 12:37:39 +0000 (12:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2845 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/LaTeX.C
src/support/ChangeLog
src/support/filetools.C

index 0cb42ed1bf25e7d2da2f103834abcc54778e5d7d..71b2888ac3da6a74971dfef94956c0f1823c59c9 100644 (file)
@@ -1,3 +1,7 @@
+2001-07-02  Claus Hentschel  <claus.hentschel@mbau.fh-hannover.de>
+
+       * LaTeX.C (deplog): add another regex for MikTeX
+
 2001-10-05  Adrien Rebollo  <adrien.rebollo@gmx.fr>
 
        * lyxrc.C (set_font_norm_type): support iso8859-3
index 824d2970827acde4867267da8fca6429e57b9212..03dcc49b9743cb93b0f95a8fcbf77e85e6470cca 100644 (file)
@@ -18,8 +18,9 @@
 #endif
 #include <fstream>
 
-#include "support/filetools.h"
 #include "LaTeX.h"
+#include "support/filetools.h"
+#include "support/os.h"
 #include "support/FileInfo.h"
 #include "debug.h"
 #include "support/lyxlib.h"
@@ -649,6 +650,11 @@ void LaTeX::deplog(DepTable & head)
        LRegex reg2("File: ([^ ]+).*");
        LRegex reg3("No file ([^ ]+)\\..*");
        LRegex reg4("\\\\openout[0-9]+.*=.*`([^ ]+)'\\..*");
+       // If an index should be created, MikTex does not write a line like
+       //    \openout# = 'sample,idx'.
+       // but intstead only a line like this into the log:
+       //   Writing index file sample.idx
+       LRegex reg5("Writing index file ([^ ]+).*");
        LRegex unwanted("^.*\\.(aux|log|dvi|bbl|ind|glo)$");
        
        ifstream ifs(logfile.c_str());
@@ -680,10 +686,17 @@ void LaTeX::deplog(DepTable & head)
                        LRegex::SubMatches const & sub = reg4.exec(token);
                        foundfile = LSubstring(token, sub[1].first,
                                               sub[1].second);
+               } else if (reg5.exact_match(token)) {
+                       LRegex::SubMatches const & sub = reg5.exec(token);
+                       foundfile = LSubstring(token, sub[1].first,
+                                              sub[1].second);
                } else {
                        continue;
                }
 
+               // convert from native os path to unix path
+               foundfile = os::internal_path(foundfile);
+               
                lyxerr[Debug::DEPEND] << "Found file: " 
                                      << foundfile << endl;
                
index ced558adac09ab811a74fb3571171a8b1eddcff5..0f0fb9edb544423e9ff9b61da1985c6fa98a7896 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * filetools.C (findtexfile): apply os::internal_path to the result.
+
 2001-07-02  Claus Hentschel  <claus.hentschel@mbau.fh-hannover.de>
 
        * os_win32.C: 
index 6ac637f7d2651e74bc386fa5857b1079dff9cfd5..3eef6694eac377d02f048edf86439627f3df1827 100644 (file)
@@ -1076,8 +1076,11 @@ findtexfile(string const & fil, string const & /*format*/)
         lyxerr[Debug::LATEX] << "kpse status = " << c.first << "\n"
                             << "kpse result = `" << strip(c.second, '\n') 
                             << "'" << endl;
+       string fullpath;
        if (c.first != -1) 
-               return strip(strip(c.second, '\n'), '\r');
+               fullpath = os::internal_path(strip(strip(c.second,
+                                                        '\n'),
+                                                  '\r'));
        else
                return string();
 }