]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.2.8.jcn2
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 17 Sep 1999 12:28:39 +0000 (14:28 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 17 Sep 1999 12:28:39 +0000 (14:28 +0200)
pl 8.jcn2
- scripts/mudela-book.py: use hash of full .ly contents (by default)
- bf: footify html doc upon creation too

13 files changed:
CHANGES
Documentation/metadoc/GNUmakefile
Documentation/tex/GNUmakefile
Documentation/tex/regression-test.tely
Documentation/tex/tutorial.tely
VERSION
make/mutopia-targets.make
make/toplevel.make.in
scripts/mudela-book.py
stepmake/stepmake/documentation-targets.make
stepmake/stepmake/documentation-vars.make
stepmake/stepmake/texinfo-rules.make
stepmake/stepmake/yolily-toplevel-vars.make

diff --git a/CHANGES b/CHANGES
index 488c5a93cd079e5aeca30bd975d1c96e982f5d9a..193094e98937f5b4d1d6ee8bda23e40d659dc60f 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+pl 8.jcn2
+       - scripts/mudela-book.py: use hash of full .ly contents (by default)
+       - bf: footify html doc upon creation too
+
 pl 8.jcn1
        - Documentation/Localisation.texi: still some issues
        - Uniformised locale strings
 pl 8.jcn1
        - Documentation/Localisation.texi: still some issues
        - Uniformised locale strings
index d40a30064f55b50292cdf938c99d760ffde2197f..169d6efe15a20aed735875bdc98e9e1d1d766150 100644 (file)
@@ -44,6 +44,7 @@ OUTGENHTMLS = $(addprefix $(outdir)/, $(GENHTMLS:%=%.html))
 # URG.  Lilypond specific. Move out. 
 $(outdir)/%.html: %.data $(depth)/VERSION
        $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ $<
 # URG.  Lilypond specific. Move out. 
 $(outdir)/%.html: %.data $(depth)/VERSION
        $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ $<
+       $(footify) $@
 
 $(outdir)/%.tex: %.data $(depth)/VERSION
        $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ --latex $<
 
 $(outdir)/%.tex: %.data $(depth)/VERSION
        $(PYTHON) $(step-bindir)/table-to-html.py --columns=7 --linesep='\r' --package=$(topdir) -o $@ --latex $<
@@ -54,6 +55,7 @@ local-WWW-donotdoit: $(HTML_FILES) $(OUTTEX_FILES:.doc=.ps.gz)  $(addprefix $(ou
        $(PYTHON) $(step-bindir)/ls-latex.py --title 'LaTeX documents about design and implementation of LilyPond' \
          $(TELY_FILES)  $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
          | sed "s!$(outdir)/!!g" > $(outdir)/index.html
        $(PYTHON) $(step-bindir)/ls-latex.py --title 'LaTeX documents about design and implementation of LilyPond' \
          $(TELY_FILES)  $(BIB_FILES) $(DOC_FILES) $(TEX_FILES)\
          | sed "s!$(outdir)/!!g" > $(outdir)/index.html
+       $(footify) $(outdir)/index.html
 
 $(outdir)/%.bib: %.bib
        ln -f $< $@
 
 $(outdir)/%.bib: %.bib
        ln -f $< $@
@@ -61,6 +63,7 @@ $(outdir)/%.bib: %.bib
 # ignore result since bib2html is nonstandard. Errors would halt the RPM build.j  
 $(outdir)/%.html: %.bib
        -bib2html $< $@
 # ignore result since bib2html is nonstandard. Errors would halt the RPM build.j  
 $(outdir)/%.html: %.bib
        -bib2html $< $@
+       $(footify) $@
 
 # Yeah right: 
 # make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
 
 # Yeah right: 
 # make -k out/mudela.dvi => cp -f out/vocabulary.tex out/mudela.dvi
index 93174baed76c57aab6ff7f66c5f98218a567ec6d..f0f86b38a4b1913376104cf7a05c5550aba1d921 100644 (file)
@@ -54,6 +54,7 @@ local-WWW: $(HTML_FILES)   $(datafiles) $(PS_GZ_FILES)
        $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation about LilyPond' \
           $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
          | sed "s!$(outdir)/!!g" > $(outdir)/index.html
        $(PYTHON) $(step-bindir)/ls-latex.py --title 'User documentation about LilyPond' \
           $(DOC_FILES) $(TEX_FILES) $(TELY_FILES) \
          | sed "s!$(outdir)/!!g" > $(outdir)/index.html
+       $(footify) $(outdir)/index.html
 
 $(outdir)/%.bib: %.bib
        ln -f $< $@
 
 $(outdir)/%.bib: %.bib
        ln -f $< $@
index f0fc7f15ad111be9cb87b21751727380dbc1fa1f..6a0443e728a66439a9a7716e5e8e1800f463631c 100644 (file)
@@ -8,7 +8,9 @@
 @title LilyPond Regression test
 @end ignore
 
 @title LilyPond Regression test
 @end ignore
 
-@node Top, , , 
+@node Top, , ,
+
+@section Introduction
 
 This document tries give an brief overview of LilyPond features.  When
 the text correspond with the shown notation, we consider LilyPond
 
 This document tries give an brief overview of LilyPond features.  When
 the text correspond with the shown notation, we consider LilyPond
index 4fdabc66c3d34bff5e6fbe45711a3cfa9860f2bc..208bed282bc32278d4ccd1ad34db3dd3377ab7df 100644 (file)
@@ -40,13 +40,6 @@ Copyright @copyright{} 1999 by its author(s)
 
 
 
 
 
 
-
-
-
-
-
-
-
 @node Typesetting music with LilyPond, Introduction, , Top
 @menu
 * Introduction::                  Introduction
 @node Typesetting music with LilyPond, Introduction, , Top
 @menu
 * Introduction::                  Introduction
@@ -59,11 +52,6 @@ Copyright @copyright{} 1999 by its author(s)
 @end menu
 @chapter Typesetting music with LilyPond
 
 @end menu
 @chapter Typesetting music with LilyPond
 
-
-
-
-
-
 @node Introduction, tutorial-introduction, Typesetting music with LilyPond, Typesetting music with LilyPond
 @section Introduction
 @node tutorial-introduction, The first tune, Introduction, Typesetting music with LilyPond
 @node Introduction, tutorial-introduction, Typesetting music with LilyPond, Typesetting music with LilyPond
 @section Introduction
 @node tutorial-introduction, The first tune, Introduction, Typesetting music with LilyPond
diff --git a/VERSION b/VERSION
index b2bb40abc7943348d47162e462b45b81fd53d6be..0f091669437e906687662e56135ad99f388185a7 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=2
 PATCH_LEVEL=8
 MAJOR_VERSION=1
 MINOR_VERSION=2
 PATCH_LEVEL=8
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=jcn2
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index 133f2dd536ef214583ebb6fadb994d2f24ccda8e..7bc061169dcfd41065ef58fad41f449d68cf37f3 100644 (file)
@@ -6,6 +6,7 @@ all: $(OUT_FILES)
 local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(png_examples)
        (cd $(outdir); $(PYTHON) ../$(buildscripts)/mutopia-index.py --prefix=../ --suffix=/$(outdir) $(html_subdirs) $(all_examples))
        echo $^ > $(depth)/wwwlist
 local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(png_examples)
        (cd $(outdir); $(PYTHON) ../$(buildscripts)/mutopia-index.py --prefix=../ --suffix=/$(outdir) $(html_subdirs) $(all_examples))
        echo $^ > $(depth)/wwwlist
+#      $(footify) $(outdir)/index.html
 
 convert-mudela: local-convert-mudela
        $(LOOP)
 
 convert-mudela: local-convert-mudela
        $(LOOP)
index 8e7fde2a7301774e5803619d632b81d8fa2c97c0..80880448443cd82538719fe8e863b0b35172b7c7 100644 (file)
@@ -32,11 +32,10 @@ website: fonts htmldoc examples doc++
 fonts:
        $(MAKE) -C $(depth)/mf 
 
 fonts:
        $(MAKE) -C $(depth)/mf 
 
-
 examples:
        $(MAKE) CONFIGSUFFIX='www' -C input WWW
        $(MAKE) CONFIGSUFFIX='www' -C mutopia WWW
 examples:
        $(MAKE) CONFIGSUFFIX='www' -C input WWW
        $(MAKE) CONFIGSUFFIX='www' -C mutopia WWW
-       $(footify)
+       $(footify) `$(FIND) . -name '*.html' -print`
        tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' --exclude='*.ppm' -czf $(outdir)/examples.tar.gz  `find input mutopia -type d -name 'out-www' -print`
 
 localinstall:
        tar --exclude='*.dvi' --exclude='*.tex' --exclude='*.ps' --exclude='*.ppm' -czf $(outdir)/examples.tar.gz  `find input mutopia -type d -name 'out-www' -print`
 
 localinstall:
@@ -48,4 +47,4 @@ local-WWW-clean:
        $(depth)/buildscripts/out/clean-fonts
 
 footify:
        $(depth)/buildscripts/out/clean-fonts
 
 footify:
-       $(footify)
+       $(footify) `$(FIND) . -name '*.html' -print`
index e679cae1d839fc059ae71f51a0bb02a4ab90f90e..bed9d1c12e7b99a3ba7aaa7f01666c981903d334 100644 (file)
@@ -57,6 +57,7 @@ options = [
 
 format = ''
 run_lilypond = 1
 
 format = ''
 run_lilypond = 1
+use_hash = 1
 no_match = 'a\ba'
 
 # format specific strings, ie. regex-es for input, and % strings for output
 no_match = 'a\ba'
 
 # format specific strings, ie. regex-es for input, and % strings for output
@@ -516,7 +517,7 @@ def schedule_mudela_block (base, chunk, extra_opts):
        for the main file).  The .ly is written, and scheduled in
        TODO.
 
        for the main file).  The .ly is written, and scheduled in
        TODO.
 
-       Return: a chunk (TYPE_STR, MAIN_STR, OPTIONS, TODO)
+       Return: a chunk (TYPE_STR, MAIN_STR, OPTIONS, TODO, BASE)
 
        TODO has format [basename, extension, extension, ... ]
        
 
        TODO has format [basename, extension, extension, ... ]
        
@@ -531,10 +532,13 @@ def schedule_mudela_block (base, chunk, extra_opts):
                newbody = output_verbatim (body)
 
        file_body = compose_full_body (body, opts)
                newbody = output_verbatim (body)
 
        file_body = compose_full_body (body, opts)
-       updated = update_file (file_body, base + '.ly')
-       todo = [base]                   # UGH.
+       basename = base
+       if __main__.use_hash:
+               basename = `hash (file_body)`
+       updated = update_file (file_body, basename + '.ly')
+       todo = [basename]                       # UGH.
 
 
-       if not os.path.isfile (base + '.tex') or updated:
+       if not os.path.isfile (basename + '.tex') or updated:
                todo.append ('tex')
                updated = 1
 
                todo.append ('tex')
                updated = 1
 
@@ -550,25 +554,24 @@ def schedule_mudela_block (base, chunk, extra_opts):
                opts.append ('eps')
 
        if 'eps' in opts and ('tex' in todo or
                opts.append ('eps')
 
        if 'eps' in opts and ('tex' in todo or
-                             not os.path.isfile (base + '.eps')):
+                             not os.path.isfile (basename + '.eps')):
                todo.append ('eps')
 
        if 'png' in opts and ('eps' in todo or
                todo.append ('eps')
 
        if 'png' in opts and ('eps' in todo or
-                             not os.path.isfile (base + '.png')):
+                             not os.path.isfile (basename + '.png')):
                todo.append ('png')
 
        if format == 'latex':
                if 'eps' in opts :
                todo.append ('png')
 
        if format == 'latex':
                if 'eps' in opts :
-                       newbody = newbody + get_output ('output-eps') %  (base, base)
+                       newbody = newbody + get_output ('output-eps') %  (basename, basename)
                else:
                else:
-                       newbody = newbody + get_output ('output-tex') % base
+                       newbody = newbody + get_output ('output-tex') % basename
 
        elif format == 'texi':
 
        elif format == 'texi':
-               newbody = newbody + get_output ('output-all') % (base, base) 
+               newbody = newbody + get_output ('output-all') % (basename, basename) 
 
 
+       return ('mudela', newbody, opts, todo, base)
 
 
-       
-       return ('mudela', newbody, opts, todo)
 
 def find_eps_dims (match):
        "Fill in dimensions of EPS files."
 
 def find_eps_dims (match):
        "Fill in dimensions of EPS files."
@@ -654,6 +657,7 @@ def compile_all_files (chunks):
        eps = []
        tex = []
        png = []
        eps = []
        tex = []
        png = []
+       hash_dict = {}
 
        for c in chunks:
                if c[0] <> 'mudela':
 
        for c in chunks:
                if c[0] <> 'mudela':
@@ -668,6 +672,9 @@ def compile_all_files (chunks):
                        elif e == 'png':
                                png.append (base)
 
                        elif e == 'png':
                                png.append (base)
 
+               if __main__.use_hash:
+                       hash_dict[c[4]] = c[3][0]
+
        if tex:
                lilyopts = map (lambda x:  '-I ' + x, include_path)
                lilyopts = string.join (lilyopts, ' ' )
        if tex:
                lilyopts = map (lambda x:  '-I ' + x, include_path)
                lilyopts = string.join (lilyopts, ' ' )
@@ -685,6 +692,22 @@ def compile_all_files (chunks):
                cmd = cmd % (g + '.eps', g + '.png')
                system (cmd)
 
                cmd = cmd % (g + '.eps', g + '.png')
                system (cmd)
 
+       if __main__.use_hash:
+               name = ''
+               last_name = ''
+               f = 0
+               ks = hash_dict.keys ()
+               ks.sort ()
+               for i in ks:
+                       name = re.sub ("(.*)-[0-9]+\.[0-9]+\.[0-9]+", "\\1", i)
+                       name = name + '.mix'
+                       if name != last_name:
+                               if last_name:
+                                       f.close ()
+                               f = open (name, 'w')
+                               last_name = name
+                       f.write ("%s:%s\n" % (i, hash_dict[i]))
+
        
 def update_file (body, name):
        same = 0
        
 def update_file (body, name):
        same = 0
index d02041f4d2d0116500eb134444f075f68ec1f0aa..fc2d648a1f347407ace210535bbb66c28a64ce04 100644 (file)
@@ -10,6 +10,9 @@ local-WWW: $(OUTHTML_FILES)
 doc: do-doc
 
 
 doc: do-doc
 
 
+footify:
+       $(footify) $(sort $(wildcard $(outdir)/*.html out/*.html out-www/*.html))
+
 # what to do here?
 ifeq (a,b) 
 
 # what to do here?
 ifeq (a,b) 
 
index a4e84683e11cdc931924a5f1bee0e10057291e65..dfe32198c6944d380b38f25e5aaeacdffdd42966 100644 (file)
@@ -3,6 +3,7 @@ AT_FILES = $(BLURBS) #
 at-dir = $(doc-dir)/
 at-ext = .in
 
 at-dir = $(doc-dir)/
 at-ext = .in
 
+footify=$(PYTHON) $(step-bindir)/add-html-footer.py --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION) --footer $(depth)/Documentation/footer.html.in
 
 #
 YO_FILES := $(wildcard *.yo)
 
 #
 YO_FILES := $(wildcard *.yo)
@@ -20,5 +21,4 @@ OUTHTML_FILES = $(OUTYO_FILES:.yo=.html) $(OUTIN_FILES:.yo=.html)
 OUTREADME_TXT_FILES=$(addprefix $(outdir)/,$(addsuffix .txt, $(README_TOP_FILES)))
 OUTREADME_HTML_FILES=$(addprefix $(outdir)/,$(addsuffix .html, $(README_TOP_FILES)))
 
 OUTREADME_TXT_FILES=$(addprefix $(outdir)/,$(addsuffix .txt, $(README_TOP_FILES)))
 OUTREADME_HTML_FILES=$(addprefix $(outdir)/,$(addsuffix .html, $(README_TOP_FILES)))
 
-
 ALL_SOURCES += $(ALL_DOC_FILES)
 ALL_SOURCES += $(ALL_DOC_FILES)
index cdda14839a6a9be72a327724e6a64c13dbbf2231..045a8da175ae4af96813816a6ec21cf501d6e3e2 100644 (file)
@@ -7,6 +7,7 @@ $(outdir)/%.info: $(outdir)/%.texi
 
 $(outdir)/%.html:      $(outdir)/%.texi
        -makeinfo --force --output=$@ --html --no-headers $< 
 
 $(outdir)/%.html:      $(outdir)/%.texi
        -makeinfo --force --output=$@ --html --no-headers $< 
+       $(footify) $@
 
 $(outdir)/%.dvi:       $(outdir)/%.texi
 # --clean only in >= 3.12s
 
 $(outdir)/%.dvi:       $(outdir)/%.texi
 # --clean only in >= 3.12s
index 8d4dd0c13cce452350af1d181c3428d672c3a323..eff32717f5ddedaafe219871bdac6a86e0900f2f 100644 (file)
@@ -1,5 +1,5 @@
 # -*-Makefile-*-
 # title           Yolily_Toplevel_vars.make
 
 # -*-Makefile-*-
 # title           Yolily_Toplevel_vars.make
 
-footify=$(PYTHON) $(step-bindir)/add-html-footer.py --name $(PACKAGE_NAME) --version $(TOPLEVEL_VERSION) \
-               --footer Documentation/footer.html.in `$(FIND) . -name '*.html' -print`
+include $(stepdir)/documentation-vars.make
+