]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.2.7
authorfred <fred>
Tue, 14 Sep 1999 14:32:36 +0000 (14:32 +0000)
committerfred <fred>
Tue, 14 Sep 1999 14:32:36 +0000 (14:32 +0000)
stepmake/bin/text2html.py [new file with mode: 0644]

diff --git a/stepmake/bin/text2html.py b/stepmake/bin/text2html.py
new file mode 100644 (file)
index 0000000..a4ad6ea
--- /dev/null
@@ -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"""
+<body>
+<xmp>%s
+</xmp>
+</body>""" % open (a).read ()
+       open (outfile, 'w').write (s)
+
+