From: fred Date: Tue, 14 Sep 1999 14:32:36 +0000 (+0000) Subject: lilypond-1.2.7 X-Git-Tag: release/1.5.59~5776 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d6e9dce911e56ddd50696218a3f13184be0aeb32;p=lilypond.git lilypond-1.2.7 --- diff --git a/stepmake/bin/text2html.py b/stepmake/bin/text2html.py new file mode 100644 index 0000000000..a4ad6ea124 --- /dev/null +++ b/stepmake/bin/text2html.py @@ -0,0 +1,21 @@ +#@PYTHON@ +import os +import string +import sys + +for a in sys.argv[1:]: + outfile = os.path.basename (os.path.splitext(a)[0]) + '.html' + + try: + os.unlink(outfile) + except: + pass + + s = r""" + +%s + +""" % open (a).read () + open (outfile, 'w').write (s) + +