]> git.donarmstrong.com Git - lilypond.git/commitdiff
Build: Generate info and pdf output from -book regtests.
authorJulien Rioux <jrioux@physics.utoronto.ca>
Sun, 22 Jan 2012 15:36:31 +0000 (10:36 -0500)
committerJulien Rioux <jrioux@physics.utoronto.ca>
Mon, 13 Feb 2012 14:07:42 +0000 (09:07 -0500)
Allow to catch any problems in either toolchains:
lilypond-book -> makeinfo
lilypond-book -> texi2pdf

input/regression/lilypond-book/GNUmakefile
scripts/build/lys-to-tely.py

index a1b4dd6b623da24108f431ffe09bf125a4bebb42..d5d4175c9a70c0eaa63a13d5e5df0c344f011062 100644 (file)
@@ -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)
index a868ea2903395ebadec6f19383d183810a2170a9..a3bc4b576bdc8e08f4bc9ff0f9e2dbbe42147c53 100644 (file)
@@ -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