copy-for-me:
$(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
+OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(README_TOP_FILES)))
+
+# cd $(outdir) rule gets bit hairy for --srcdir configure builds
txt-to-html:
- $(foreach a, $(README_TOP_FILES), \
- echo "<html><body><xmp>" > $(outdir)/$(a).html;\
- cat $(outdir)/$(a).txt >> $(outdir)/$(a).html;\
- echo "</xmp></body></html>" >> $(outdir)/$(a).html\
- && ) true
+ $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)
$(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(README_TOP_FILES)))
#urg default local-WWW target uses footify before its time;
# must add footify with txt-to-html target
-local-WWW: $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS))) $(OUT_HTMLFILES) txt-to-html
+OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(TEXTS)))
+local-WWW: $(OUT_TXT_FILES) $(OUT_HTMLFILES) txt-to-html
copy-for-me:
$(foreach a, $(README_TOP_FILES), cp ../$(a) $(outdir)/$(a).txt && ) true
cp $< $@
txt-to-html:
- $(foreach a, $(TEXTS),\
- echo "<html><body><xmp>" > $(outdir)/$(a).html;\
- cat $(outdir)/$(a).txt >> $(outdir)/$(a).html;\
- echo "</xmp></body></html>" >> $(outdir)/$(a).html\
- && ) true
+ $(PYTHON) $(step-bindir)/text2html.py $(OUT_TXT_FILES)
$(footify) $(addprefix $(outdir)/, $(addsuffix .html, $(TEXTS)))
This document describes how to build LilyPond on Unix platforms. It is
also known to run and compile on Windows NT/95/98 as well. More
information on this topic can be found at the
-@uref{ftp://ftp.lilypond.org/pub/LilyPond/gnu-windows/, LilyPond on Windows
-page}.
+@uref{http://www.lilypond.org/gnu-windows/, LilyPond on Windows page}.
@html
info: $(INFO_FILES)
-# The new pretest version of makeinfo, 4.0a splits html files into their own
-# directory. Available from
-# ftp://texinfo.org/texinfo/pretests/texinfo-4.0a.tar.gz
-SPLITTING_MAKEINFO = $(shell makeinfo --version | egrep '4.0((.jcn[2,3])|a|b)')
-
-
# Generic rule using % twice not possible?
# $(outdir)/%/%.html: $(outdir)/%.texi
$(outdir)/lilypond/lilypond.html: $(outdir)/lilypond.texi
-cp -f $(outdir)/lilypond-internals/index.html $@
$(deep-footify) $(shell find $(outdir)/$(*F)/*.html)
-ifneq ($(SPLITTING_MAKEINFO),)
+
+ifeq ($(SPLITTING_MAKEINFO),yes)
DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html
-else
+local-WWW: rm-deep-symlinks
-DEEP_HTML_FILES = $(outdir)/lilypond.html $(outdir)/lilypond-internals.html
-
-local-WWW: deep-symlinks
+rm-deep-symlinks:
+ cd $(outdir) && rm -f lilypond lilypond-internals; true
+else
+DEEP_HTML_FILES = $(outdir)/lilypond.html $(outdir)/lilypond-internals.html
# Links referred to by Documentation index
-LILYPOND_LINKS=Reference-Manual.html Features.html Ly2dvi.html Midi2ly.html
+LILYPOND_LINKS=Reference-Manual.html Tutorial.html Ly2dvi.html Midi2ly.html
+
+local-WWW: deep-symlinks
deep-symlinks:
cd $(outdir) && rm -f lilypond && ln -s . lilypond
AC_CHECK_FUNCS(gettext)
])
+AC_DEFUN(AC_STEPMAKE_MAKEINFO, [
+ AC_CHECK_PROGS(MAKEINFO, makeinfo, error)
+ if test "$MAKEINFO" != "error"; then
+ AC_MSG_CHECKING(whether makeinfo can split html by @node)
+ mkdir -p out
+ makeinfo --html --output=out/split <<EOF
+\input texinfo
+\input texinfo @c -*-texinfo-*-
+@setfilename split.info
+@settitle split.info
+@bye
+EOF
+ if test -d out/split; then
+ SPLITTING_MAKEINFO=yes
+ AC_MSG_RESULT(yes)
+ rm -rf out/split
+ else
+ AC_MSG_RESULT(no)
+ AC_STEPMAKE_WARN(your html documentation will be one large file)
+ rm -rf out/split
+ fi
+ fi
+ AC_SUBST(SPLITTING_MAKEINFO)
+])
+
+
AC_DEFUN(AC_STEPMAKE_MAN, [
AC_CHECK_PROGS(GROFF, groff ditroff, -echo no groff)
AC_CHECK_PROGS(TROFF, troff, -echo no troff)
(defun LilyPond-shell-process (name buffer command)
(let ((old (current-buffer)))
(switch-to-buffer-other-window buffer)
- ;; Hmm, if we goto the end of the buffer, we don't see
- ;; the messages scroll by. I don't know how to fix this,
- ;; so let's emty the buffer, then
- ;;(goto-char (point-max))
- (erase-buffer)
- (goto-char (point-min))
+ ;; If we empty the buffer don't see messages scroll by.
+ ;; (erase-buffer)
+
(start-process-shell-command name buffer command)
(switch-to-buffer-other-window old)))
(if LilyPond-kick-xdvi
(let ((process-xdvi (get-buffer-process buffer-xdvi)))
(if process-xdvi
- ;; Don't open new xdvi window, but force redisplay
- ;; We could make this an option.
(signal-process (process-id process-xdvi) 'SIGUSR1)
(LilyPond-shell-process name buffer-xdvi command)))
(LilyPond-shell-process name buffer-xdvi command)))
% textheight = 160.0 \mm
orientation = "landscape"
linewidth = 280.0 \mm
-%{
- \translator {
- \OrchestralScoreContext
- minVerticalAlign = 4.0*\staffheight
- maxVerticalAlign = 4.0*\staffheight
- }
-%}
\translator {
\StaffGroupContext
- minVerticalAlign = 4.0*\staffheight
- maxVerticalAlign = 4.0*\staffheight
- }
- \translator {
+ VerticalExtent = #'(4 . 4)
+ }
+ \translator {
\PianoStaffContext
- minVerticalAlign = 2.5*\staffheight
- maxVerticalAlign = 2.5*\staffheight
+ VerticalExtent = #'(2.5 . 2.5)
}
}
\midi {
AC_CHECK_FUNCS(gettext)
])
+AC_DEFUN(AC_STEPMAKE_MAKEINFO, [
+ AC_CHECK_PROGS(MAKEINFO, makeinfo, error)
+ if test "$MAKEINFO" != "error"; then
+ AC_MSG_CHECKING(whether makeinfo can split html by @node)
+ mkdir -p out
+ makeinfo --html --output=out/split <<EOF
+\input texinfo
+\input texinfo @c -*-texinfo-*-
+@setfilename split.info
+@settitle split.info
+@bye
+EOF
+ if test -d out/split; then
+ SPLITTING_MAKEINFO=yes
+ AC_MSG_RESULT(yes)
+ rm -rf out/split
+ else
+ AC_MSG_RESULT(no)
+ AC_STEPMAKE_WARN(your html documentation will be one large file)
+ rm -rf out/split
+ fi
+ fi
+ AC_SUBST(SPLITTING_MAKEINFO)
+])
+
+
AC_DEFUN(AC_STEPMAKE_MAN, [
AC_CHECK_PROGS(GROFF, groff ditroff, -echo no groff)
AC_CHECK_PROGS(TROFF, troff, -echo no troff)
import sys
for a in sys.argv[1:]:
- outfile = os.path.basename (os.path.splitext(a)[0]) + '.html'
+ # hmm, we need: text2html out/foe.txt -> out/foe.html,
+ # -o is a bit overkill?
+ # outfile = os.path.basename (os.path.splitext(a)[0]) + '.html'
+ outfile = os.path.splitext(a)[0] + '.html'
try:
os.unlink(outfile)
pass
s = r"""
-<body>
-<xmp>%s
-</xmp>
-</body>""" % open (a).read ()
+<html><body><pre>
+%s
+</pre></body></html>
+""" % open (a).read ()
open (outfile, 'w').write (s)