]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.2.2.jcn1
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 23 Aug 1999 12:01:48 +0000 (14:01 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 23 Aug 1999 12:01:48 +0000 (14:01 +0200)
pl 2.jcn1
- add-html-footer.py, ls-latex.py .tely updates and fixes
- tely (texinfo-lily) rules and test Documentation/metadoc/foo.tely

CHANGES
Documentation/metadoc/GNUmakefile
Documentation/metadoc/lilypond-overview.doc
Documentation/metadoc/test.tely [new file with mode: 0644]
Documentation/tex/GNUmakefile
VERSION
make/mudela-rules.make
stepmake/bin/add-html-footer.py
stepmake/bin/ls-latex.py

diff --git a/CHANGES b/CHANGES
index 03566b51e0b159656a9ec3db9b2e592488e53228..63c3f7c63b8a723dd360c8af76eac344fd9418bb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+pl 2.jcn1
+       - add-html-footer.py, ls-latex.py .tely updates and fixes
+       - tely (texinfo-lily) rules and test Documentation/metadoc/foo.tely
+
 pl 1.uu2
        - complete rewrite of mudela-book. Much cleaner now.
 Support for texinfo.
index 015002e47f178a555fc51abe4357ae32d3a47ea6..ebce9188b1add1fe3358096df69fa9ed26e363f2 100644 (file)
@@ -6,7 +6,8 @@ DATA_FILES = $(wildcard *.data)
 datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
 TEX_FILES = $(wildcard *.tex)
 DOC_FILES = $(wildcard *.doc)
-DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
+TELY_FILES = $(wildcard *.tely)
+DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi) $(TELY_FILES:.tely=.dvi))
 OUT_BIB_FILES = $(addprefix $(outdir)/, $(BIB_FILES))
 
 # just include me
@@ -16,8 +17,8 @@ OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
 EL_FILES = $(wildcard *.el)
 BIB_FILES= $(wildcard *.bib)
-EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(wildcard *.sty) 
-HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
+EXTRA_DIST_FILES= $(BIB_FILES) $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(TELY_FILES) $(wildcard *.sty) 
+HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html) $(TELY_FILES:.tely=.html))
 PS_FILES = $(DVI_FILES:.dvi=.ps)
 
 STEPMAKE_TEMPLATES=tex documentation
@@ -54,7 +55,7 @@ $(outdir)/%.tex: %.data $(depth)/VERSION
 
 local-WWW: $(HTML_FILES) $(OUTTEX_FILES:.doc=.ps.gz) $(OUTYO_FILES:.yo=.latex) $(OUTYO_FILES:.yo=.ps.gz) $(addprefix $(outdir)/, $(BIB_FILES:.bib=.html)) $(datafiles) ps
        $(PYTHON) $(step-bindir)/ls-latex.py --package=$(topdir) --title 'LaTeX documents about design and implementation of LilyPond' \
-         $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
+         $(TELY_FILES) $(YO_FILES) $(OUTYO_FILES:.yo=.latex) $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
          | sed "s!$(outdir)/!!g" > $(outdir)/index.html
          $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) $(outdir)/index.html
 
index 4aa1e759bda231807b3ec98f05050226c20f4140..ddcd7f99e56a2668ccfbd9a14306b7bd87a842ae 100644 (file)
@@ -90,7 +90,7 @@ input along with output in Figure~\ref{fig:intro-fig}.
 %
 \begin{figure}[htbp]
   \begin{center}
-\begin{mudela}[verbatim]
+\begin[verbatim]{mudela}
       \score {
         \notes
           \context GrandStaff <
diff --git a/Documentation/metadoc/test.tely b/Documentation/metadoc/test.tely
new file mode 100644 (file)
index 0000000..ae2662f
--- /dev/null
@@ -0,0 +1,21 @@
+\input texinfo   @c -*-texinfo-*-
+@setfilename foo
+@settitle foo
+
+@c @node Top
+@c @top
+
+@menu
+* foo:: bar
+@end menu
+
+@node foo
+@section foo
+
+@mudela[veryverbatim, intertext="produces this music:"]
+\score{
+  \notes\relative c'{
+       a b c
+  }
+}
+@end mudela
index ce19dc689c35c15840c971a6c4d2c7cc6f1f128d..6fd3cf7762bbc1aaf2a449a8d095b76b0aa1b749 100644 (file)
@@ -6,7 +6,8 @@ DATA_FILES = $(wildcard *.data)
 datafiles = $(addprefix $(outdir)/,$(DATA_FILES:.data=.html))
 TEX_FILES = $(wildcard *.tex)
 DOC_FILES = $(wildcard *.doc)
-DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi))
+TELY_FILES = $(wildcard *.tely)
+DVI_FILES = $(addprefix $(outdir)/,$(DOC_FILES:.doc=.dvi) $(YO_FILES:.yo=.dvi) $(TELY_FILES:.tely=.dvi))
 
 # just include me
 YO_URG_FILES = $(wildcard *.yo-urg)
@@ -14,8 +15,8 @@ YO_URG_FILES = $(wildcard *.yo-urg)
 OUTTEX_FILES = $(addprefix $(outdir)/, $(TEX_FILES))
 OUTDOC_FILES = $(addprefix $(outdir)/, $(DOC_FILES))
 
-EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) testje.fly
-HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html))
+EXTRA_DIST_FILES= $(DOC_FILES) $(DATA_FILES) $(EL_FILES) $(YO_URG_FILES) $(TEX_FILES) $(TELY_FILES) testje.fly
+HTML_FILES = $(addprefix $(outdir)/, $(YO_FILES:.yo=.html) $(TELY_FILES:.tely=.html))
 PS_FILES = $(DVI_FILES:.dvi=.ps)
 
 STEPMAKE_TEMPLATES=tex documentation
diff --git a/VERSION b/VERSION
index 95a1009af5a79e8a37b49f7523d4bc390cba798b..9d83f681f5bd0448a0a248bba78deb32ba54cc6f 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=2
 PATCH_LEVEL=2
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index 4e82175ea28068bd3dec4714f8264924e2cc00cc..5a266689140c8ad8062c4918c9ed33d5f3161177 100644 (file)
@@ -1,11 +1,22 @@
 # Mudela_rules.make
 
-.SUFFIXES: .doc .dvi .mudtex
-
-
+.SUFFIXES: .doc .dvi .mudtex .tely .texi
 
 $(outdir)/%.latex: %.doc
        cd $(outdir);  $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies ../$< 
        sed 's! \.\./! !g'<  $(basename $@).dep > $(outdir)/temp.dep 
        sed 's!^\(.*\):!'$(outdir)'/\1:!g' < $(outdir)/temp.dep > $(basename $@).dep 
        rm $(outdir)/temp.dep
+
+$(outdir)/%.texi: %.tely
+       cd $(outdir); $(PYTHON) $(depth)/../scripts/mudela-book.py -I .. -I $(depth)/../input/test/ --dependencies --format=texi ../$<
+
+$(outdir)/%.info: $(outdir)/%.texi
+       makeinfo --output=$@ $<
+
+$(outdir)/%.html:      $(outdir)/%.texi
+       makeinfo --output=$@ --html $< 
+       $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=$(depth)/../index.html $@ $(wildcard $(basename $@)[0-9][0-9].html)
+
+$(outdir)/%.dvi:       $(outdir)/%.texi
+       cd $(outdir); texi2dvi --clean ../$< 
index 669a319ac3e57f932ad46e240539f889d9ba522f..9c4126e0a1b78252b2a59ce338a41d9d4bc1831e 100644 (file)
@@ -125,7 +125,9 @@ for f in files:
        + '</TITLE></HEAD>'
     s = check_tag ('<title>', title, s, 0)
 
-    s = check_tag ('<html>', '<HTML>', s, 0)
+    s = check_tag ('<html', '', s, 0)
+    if regex.search ('<HTML', s) == -1:
+       s = '<HTML>\n' + s
     s = check_tag ('</html>', '</HTML>', s, 1)
 
     #urg
index d9542c2ae10dcca9fd802953d49967c9b4d28dee..92c0d1644a99dfdb82d6cecb1e78939836dc0771 100644 (file)
@@ -109,6 +109,21 @@ def read_texinfo_header (fn):
     header.format = 'HTML'
     return  header
 
+def read_tely_header (fn):
+    header = Latex_head ()
+    s = gulp_file (fn)
+    i = regex.search( '@settitle', s)
+    s = s[i+10:]
+    i = regex.search( '\n', s)
+    if i < 0:
+       sys.stderr.write ('gulped file: ' + fn + '\n')
+       raise 'huh?'
+    header.title = s[:i]
+    header.filename = fn
+    header.outfile = regsub.gsub ('\.tely', '.html', fn)
+    header.format = 'HTML'
+    return  header
+
 # urg
 # should make a 'next_parens'
 yo_article_re = regex.compile('article(\\([^)]*\\))[ \t\n]*(\\([^)]*\\))')
@@ -136,7 +151,6 @@ def read_yo_header (fn):
     header.format = 'HTML'
     return  header
 
-
 def print_html_head (l,o,h):
     pre =o
 
@@ -192,6 +206,8 @@ for x in files:
        head = read_pod_header (x)
     elif regex.search ('\\.texinfo$', x) <> -1:
        head = read_texinfo_header (x)
+    elif regex.search ('\\.tely$', x) <> -1:
+       head = read_tely_header (x)
     elif regex.search ('\\.yo$', x) <> -1:
        head = read_yo_header (x)
     else: