diff options
author | Julien Rioux <jrioux@physics.utoronto.ca> | 2012-01-22 10:36:31 -0500 |
---|---|---|
committer | Julien Rioux <jrioux@physics.utoronto.ca> | 2012-02-13 09:07:42 -0500 |
commit | d62868877468728760bddc29ebb8ba174d77ede1 (patch) | |
tree | 8927ba99c3140da1f10e61a966916f1467825f9c | |
parent | 6a1f558672bd534fdadc7ae559c8711c0ccb21ea (diff) |
Build: Generate info and pdf output from -book regtests.
Allow to catch any problems in either toolchains:
lilypond-book -> makeinfo
lilypond-book -> texi2pdf
-rw-r--r-- | input/regression/lilypond-book/GNUmakefile | 7 | ||||
-rw-r--r-- | scripts/build/lys-to-tely.py | 13 |
2 files changed, 14 insertions, 6 deletions
diff --git a/input/regression/lilypond-book/GNUmakefile b/input/regression/lilypond-book/GNUmakefile index a1b4dd6b62..d5d4175c9a 100644 --- a/input/regression/lilypond-book/GNUmakefile +++ b/input/regression/lilypond-book/GNUmakefile @@ -16,6 +16,13 @@ EXTRA_DIST_FILES += $(call src-wildcard,*.ily) EXTRA_DIST_FILES += $(call src-wildcard,*.tely) EXTRA_DIST_FILES += $(call src-wildcard,*.itely) +OUT_TEXI_FILES += ${TEXI_FILES:%.texi=$(outdir)/%.info} +OUT_TEXI_FILES += ${TEXI_FILES:%.texi=$(outdir)/%.pdf} +OUT_TEXINFO_FILES += ${TEXINFO_FILES:%.texinfo=$(outdir)/%.info} +OUT_TEXINFO_FILES += ${TEXINFO_FILES:%.texinfo=$(outdir)/%.pdf} +OUT_TELY_FILES += ${TELY_FILES:%.tely=$(outdir)/%.info} +OUT_TELY_FILES += ${TELY_FILES:%.tely=$(outdir)/%.pdf} + XML_FILES = $(filter-out include%,$(call src-wildcard,*.xml)) local-test: $(OUT_FILES) diff --git a/scripts/build/lys-to-tely.py b/scripts/build/lys-to-tely.py index a868ea2903..a3bc4b576b 100644 --- a/scripts/build/lys-to-tely.py +++ b/scripts/build/lys-to-tely.py @@ -102,18 +102,19 @@ for opt in options: else: raise Exception ('unknown option: ' + o) -texi_file_re = re.compile ('.*\.i?te(ly|xi)$') -html_file_re = re.compile ('.*\.i?htm(l)?$') -xml_file_re = re.compile ('.*\.i?(xm|mx)l$') -tex_file_re = re.compile ('.*\.i?(la)?tex$') +html_file_re = re.compile ('.*\.i?html?$') +info_file_re = re.compile ('.*\.info$') pdf_file_re = re.compile ('.*\.i?pdf$') +tex_file_re = re.compile ('.*\.i?(la)?tex$') +texi_file_re = re.compile ('.*\.i?te(ly|xi|xinfo)$') +xml_file_re = re.compile ('.*\.i?(xm|mx)l$') def name2line (n): if texi_file_re.match (n): # We have a texi include file, simply include it: s = r"@include %s" % os.path.basename (n) - elif (html_file_re.match (n) or pdf_file_re.match (n) or - tex_file_re.match (n)): + elif (html_file_re.match (n) or info_file_re.match (n) + or pdf_file_re.match (n) or tex_file_re.match (n)): s = r""" @ifhtml @html |