commit fecc4389642418d468e213f22379e1a714c30c50
Author: Kornel Benko <[email protected]>
Date:   Thu May 14 14:24:17 2015 +0200

    Update runtests.py to handle \origin for tex2lyx/cmplyx tests used by cmake.

diff --git a/src/tex2lyx/test/runtests.py b/src/tex2lyx/test/runtests.py
index 280141c..fab0f97 100755
--- a/src/tex2lyx/test/runtests.py
+++ b/src/tex2lyx/test/runtests.py
@@ -123,6 +123,12 @@ def main(argv):
                     f1 = open(lyxfile1, 'r')
                     f2 = open(lyxfile2, 'r')
                     lines1 = f1.readlines()
+                    i1 = 0
+                    for linex in lines1:
+                      if linex[:-1] == '\origin ' + inputdir + '/':
+                        lines1[i1] = '\origin ' + outputdir + '/' + "\n"
+                        break
+                      i1 = i1+1
                     lines2 = f2.readlines()
                     f1.close()
                     f2.close()

Reply via email to