X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=buildscripts%2Flys-to-tely.py;h=96539a27fcaa353471274b0339325ef0d7e2b894;hb=bbc682c8cfcc192f4d07c8cebb16a424cf8688e9;hp=e74c7145034e26f715bb73dfb04da015aef57c39;hpb=5cfe4870e6871699219fa7a27a27d852d47bc54f;p=lilypond.git diff --git a/buildscripts/lys-to-tely.py b/buildscripts/lys-to-tely.py index e74c714503..96539a27fc 100755 --- a/buildscripts/lys-to-tely.py +++ b/buildscripts/lys-to-tely.py @@ -12,6 +12,7 @@ TODO: import sys import os import getopt +import re program_name = 'lys-to-tely' @@ -85,8 +86,15 @@ for opt in options: 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