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:
+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
# 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 $@ $<
$(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 $<
$(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 $< $@
# 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 $< $@
# 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
$(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 $< $@
@title LilyPond Regression test
@end ignore
@title LilyPond Regression test
@end ignore
+@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
@node Typesetting music with LilyPond, Introduction, , Top
@menu
* Introduction:: Introduction
@node Typesetting music with LilyPond, Introduction, , Top
@menu
* Introduction:: Introduction
@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
MAJOR_VERSION=1
MINOR_VERSION=2
PATCH_LEVEL=8
MAJOR_VERSION=1
MINOR_VERSION=2
PATCH_LEVEL=8
# 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.
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)
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) `$(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:
$(depth)/buildscripts/out/clean-fonts
footify:
$(depth)/buildscripts/out/clean-fonts
footify:
+ $(footify) `$(FIND) . -name '*.html' -print`
format = ''
run_lilypond = 1
format = ''
run_lilypond = 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
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, ... ]
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
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)
- newbody = newbody + get_output ('output-tex') % base
+ newbody = newbody + get_output ('output-tex') % basename
- 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."
eps = []
tex = []
png = []
eps = []
tex = []
png = []
for c in chunks:
if c[0] <> 'mudela':
for c in chunks:
if c[0] <> 'mudela':
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, ' ' )
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
+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)
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)
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)
$(outdir)/%.html: $(outdir)/%.texi
-makeinfo --force --output=$@ --html --no-headers $<
$(outdir)/%.html: $(outdir)/%.texi
-makeinfo --force --output=$@ --html --no-headers $<
$(outdir)/%.dvi: $(outdir)/%.texi
# --clean only in >= 3.12s
$(outdir)/%.dvi: $(outdir)/%.texi
# --clean only in >= 3.12s
# -*-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
+