]> git.lyx.org Git - features.git/commitdiff
Update runtests.py to handle \origin for tex2lyx/cmplyx tests used by cmake.
authorKornel Benko <kornel@lyx.org>
Thu, 14 May 2015 12:24:17 +0000 (14:24 +0200)
committerKornel Benko <kornel@lyx.org>
Thu, 14 May 2015 12:24:17 +0000 (14:24 +0200)
src/tex2lyx/test/runtests.py

index 280141c778e7c615d4332e034999117af238d25e..fab0f97833db8401ba247a7ebbcad5f4182437cf 100755 (executable)
@@ -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()