]> git.donarmstrong.com Git - lilypond.git/blob - stepmake/bin/text2html.py
release: 1.2.7
[lilypond.git] / stepmake / bin / text2html.py
1 #@PYTHON@
2 import os
3 import string
4 import sys
5
6 for a in sys.argv[1:]:
7         outfile = os.path.basename (os.path.splitext(a)[0]) + '.html'
8         
9         try:
10             os.unlink(outfile)
11         except:
12             pass
13
14         s = r"""
15 <body>
16 <xmp>%s
17 </xmp>
18 </body>""" % open (a).read ()
19         open (outfile, 'w').write (s)
20
21