]> git.lyx.org Git - lyx.git/blob - development/cmake/po/dos2unix.py
Customization: correct some color names.
[lyx.git] / development / cmake / po / dos2unix.py
1 #! /usr/bin/env python
2
3 ###############
4 import sys
5
6 for fname in sys.argv[1:]:
7     infile = open( fname, "r" )
8     instr = infile.read()
9     infile.close()
10     outstr = instr.replace( "\r\n", "\n" ).replace( "\r", "\n" )
11
12     if outstr == instr:
13         continue
14     
15     outfile = open( fname , "w" )
16     outfile.write( outstr )
17     outfile.close()