import sys
import os
import getopt
+import re
program_name = 'lys-to-tely'
else:
raise Exception ('unknown option: ' + o)
+texi_file_re = re.compile ('.*\.i?te(ly|xi)$')
+
def name2line (n):
- s = r"""
+ if texi_file_re.match (n):
+ # We have a texi include file, simply include it:
+ s = r"@include %s" % os.path.basename (n)
+ else:
+ # Assume it's a lilypond file -> create image etc.
+ s = r"""
@ifhtml
@html
<a name="%s"></a>