2003-03-17 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * Documentation/user/lilypond.tely: omf updates.
+
+ * buildscripts/texi2omf.py (omf_vars): include version.date
+
+ * make/lilypond.redhat.spec.in: fixes for spec file.
+
+ * stepmake/stepmake/texinfo-vars.make (GENERATE_OMF): replace var
+ by function definition: lily now requires a recent GNU Make.
+
+ * scripts/lilypond-book.py (write_deps): remove .tex dependency writing.
+
+ * make/ly-rules.make: remove .ly -> .tex rule
+
* Documentation/user/refman.itely (Figured bass): revised figured
bass example.
@omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
@omfdescription User manual of the LilyPond music engraving system
@omftype user manual
-@omfcategory Music
+@omfcategory Music
+@omflanguage English
@end ignore
@ignore
@omfcreator Christian Mondrup
@omfdescription Glossary of musical terms with translations
-@omftype user manual
-@omfcategory Music
+@omftype user's guide
+@omfcategory Music
+@omflanguage English
@end ignore
@ifnottex
PACKAGE_NAME=LilyPond
MAJOR_VERSION=1
MINOR_VERSION=7
-PATCH_LEVEL=14
+PATCH_LEVEL=15
MY_PATCH_LEVEL=
# Use the above to send patches: MY_PATCH_LEVEL is always empty for a
-print r'''
-<?xml version="1.0" encoding="UTF-8"?>
+print r'''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE omf PUBLIC "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/scrollkeeper-omf.dtd">
<omf>
<resource>
<date>
%(date)s
</date>
- <version identifier="%(version)s" />
+ <version identifier="%(version)s" date="%(date)s" />
<subject category="%(category)s"/>
<description>
%(description)s
<type>
%(type)s
</type>
- <format mime="%(mimeformat)s">
+ <format mime="%(mimeformat)s" />
<identifier url="%(location)s"/>
<language code="C"/>
<rights type="%(license)s" />
</resource>
</omf>
+
''' % omf_vars
lilypond_datadir = $(package_datadir)
lilypond_libdir = $(package_libdir)
lilypond_docdir = $(package_docdir)
+lilypond_omfdir = $(package_omfdir)
local_lilypond_datadir = $(local_package_datadir)
local_lilypond_libdir = $(local_package_libdir)
| bare_int { $$ = gh_int2scm ($1); }
| embedded_scm { $$ = $1; }
| full_markup { $$ = $1; }
- | DIGIT { $$ = $1; }
+ | DIGIT { $$ = gh_int2scm ($1); }
;
# make html
make web-doc top-web
-
+make -C Documentation/user omf
%install
%preun
-%post documentation
-scrollkeeper-update
-
-%preun documentation
-scrollkeeper-update
-
%if %{info}
if [ $1 = 0 ]; then
chkfontpath --remove=%{_datadir}/share/lilypond/@TOPLEVEL_VERSION@/fonts/type1/
+
+%post documentation
+scrollkeeper-update
+
+%postun documentation
+scrollkeeper-update
+
+
+
%files
%defattr(-, root, root)
%{_datadir}/emacs/site-lisp/lilypond*
%{_bindir}/musedata2ly
%{_bindir}/pmx2ly
+
+
%if %{info}
%{_infodir}/*
%endif
%{_datadir}/lilypond/@TOPLEVEL_VERSION@/
%{_datadir}/locale/*/LC_MESSAGES/lilypond.mo
+%{_libdir}/lilypond/
/etc/profile.d/lilypond.*
%defattr(-, root, root)
-%{docdir}/lilypond/@TOPLEVEL_VERSION@
+%{docdir}/@TOPLEVEL_VERSION@
%{_datadir}/omf/lilypond/@TOPLEVEL_VERSION@
#$(outdir)/%.nfo: $(outdir)/%.nexi
# $(MAKEINFO) --output=$(outdir)/$(*F).info $<
-$(outdir)/%.tex: $(outdir)/%.ly
- $(LILYPOND) $(LILYPOND_BOOK_INCLUDES) -o $@ $<
+#
+# let's not do this: this interferes with the lilypond-book dependency mechanism.
+#
+##$(outdir)/%.tex: $(outdir)/%.ly
+## $(LILYPOND) $(LILYPOND_BOOK_INCLUDES) -o $@ $<
#
# Timothy's booklet
dvips -u lilypond.map -o $@.pdfps -Ppdf $<
ps2pdf $@.pdfps $@
+
+$(outdir)/%.html.omf: %.tely
+ $(call GENERATE_OMF,html)
+
+$(outdir)/%.pdf.omf: %.tely
+ $(call GENERATE_OMF,pdf)
+
+$(outdir)/%.ps.gz.omf: %.tely
+ $(call GENERATE_OMF,ps.gz)
+
+
+$(outdir)/%.html.omf: $(outdir)/%.texi
+ $(call GENERATE_OMF,html)
+
+$(outdir)/%.pdf.omf: $(outdir)/%.texi
+ $(call GENERATE_OMF,pdf)
+
+$(outdir)/%.ps.gz.omf: $(outdir)/%.texi
+ $(call GENERATE_OMF,ps.gz)
@omftitle LilyPond internals
@omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
@omfdescription Programmer's reference of the LilyPond music engraving system
-@omftype user manual
-@omfcategory Music
+@omftype user's guide
+@omflanguage English
+@omfcategory Music
@end ignore
f.write ('%s%s: ' % (g_dep_prefix, target))
for d in read_files:
f.write ('%s ' % d)
- basenames=[]
- for c in chunks:
- if c[0] == 'lilypond':
- (type, body, opts, todo, basename) = c;
- basenames.append (basename)
- for d in basenames:
- if g_outdir:
- d=g_outdir + '/' + d
- if g_dep_prefix:
- #if not os.isfile (d): # thinko?
- if not re.search ('/', d):
- d = g_dep_prefix + d
- f.write ('%s.tex ' % d)
- f.write ('\n')
- #if len (basenames):
- # for d in basenames:
- # f.write ('%s.ly ' % d)
- # f.write (' : %s' % target)
+
+
+ ## There used to be code to write .tex dependencies, but
+ ## that is silly: lilypond-book has its own dependency scheme
+ ## to ensure that all lily-XXX.tex files are there
+
+
f.write ('\n')
f.close ()
read_files = []
$(footify) $@
-$(outdir)/%.html.omf: $(outdir)/%.texi
- $(GENERATE_OMF) --format html --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@
-$(outdir)/%.pdf.omf: $(outdir)/%.texi
- $(GENERATE_OMF) --format pdf --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@
+$(outdir)/%.html.omf: %.texi
+ $(call GENERATE_OMF,html)
-$(outdir)/%.ps.gz.omf: $(outdir)/%.texi
- $(GENERATE_OMF) --format ps.gz --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@
+$(outdir)/%.pdf.omf: %.texi
+ $(call GENERATE_OMF,pdf)
+
+$(outdir)/%.ps.gz.omf: %.texi
+ $(call GENERATE_OMF,ps.gz)
# Generic rule not possible?
$(outdir)/%/%.html: $(outdir)/%.texi
OUTTXT_FILES += $(addprefix $(outdir)/,$(TEXI_FILES:.texi=.txt))
-GENERATE_OMF = $(PYTHON) $(depth)/buildscripts/texi2omf.py
+GENERATE_OMF = $(PYTHON) $(depth)/buildscripts/texi2omf.py --format $(1) --location $(local_package_docdir)/$(current-relative-dir)/out-www/$(notdir $(basename $@)) --version $(TOPLEVEL_VERSION) $< > $@
+