]> git.lyx.org Git - lyx.git/blobdiff - development/scons/scons_utils.py
Rename files under src/tex2lyx
[lyx.git] / development / scons / scons_utils.py
index 15a892ac951cffcf60ecdf98da6abc1d3ec26aba..bb924cafc86d2c5248871278c0a04b4c020301f6 100644 (file)
@@ -113,6 +113,16 @@ def env_toc(target, source, env):
     doc_toc.build_toc(str(target[0]), [file.abspath for file in source])
     
     
+def env_cat(target, source, env):
+    '''Cat source > target. Avoid pipe to increase portability'''
+    output = open(env.File(target[0]).abspath, 'w')
+    for src in source:
+        input = open(env.File(src).abspath)
+        output.write(input.read())
+        input.close()
+    output.close()
+
+
 def createResFromIcon(env, icon_file, rc_file):
     ''' create a rc file with icon, and return res file (windows only) '''
     if os.name == 'nt':