]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.4.1
authorfred <fred>
Wed, 27 Mar 2002 01:19:05 +0000 (01:19 +0000)
committerfred <fred>
Wed, 27 Mar 2002 01:19:05 +0000 (01:19 +0000)
Documentation/GNUmakefile
Documentation/misc/GNUmakefile
Documentation/topdocs/INSTALL.texi
Documentation/user/GNUmakefile
aclocal.m4
lilypond-mode.el
mutopia/J.S.Bach/pa.ly
stepmake/aclocal.m4
stepmake/bin/text2html.py

index 46149c1f5f6dd3434717b2b98f6f99b2e8dc2eca..0dd22f2f2e8477b1122f1e6e0497e560dfdb683c 100644 (file)
@@ -21,10 +21,9 @@ local-WWW: copy-for-me txt-to-html $(outdir)/regression-test.ps.gz $(outdir)/reg
 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)))
index f02cd2c461756f5832d79dc4a5511d2fe41f8476..183762facc2469c879a076d4194f7fac3cad22d8 100644 (file)
@@ -13,7 +13,8 @@ default: local-doc
 
 #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
@@ -22,9 +23,5 @@ $(outdir)/%.txt: %
        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)))
index e3a24669aa620c1fe5990b0c74a648c7ab8f73fb..186ae7507bd975aa3c574a061ba1b874fa2ce4e8 100644 (file)
@@ -13,8 +13,7 @@
 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
index 7f91a261deb733cf356a7109f24e503c9724ecd2..2e0cf50d2cfca465a5813ad8947cb48972f2378e 100644 (file)
@@ -50,12 +50,6 @@ default:
 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
@@ -70,20 +64,24 @@ $(outdir)/lilypond-internals/lilypond-internals.html: $(outdir)/lilypond-interna
        -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
index 2fed2f24e9a7a65b36fcd8ec583d6d550b336c2e..f363f48a1c3f060ca0eb8d579df48f80e9e7872a 100644 (file)
@@ -537,6 +537,32 @@ AC_DEFUN(AC_STEPMAKE_GETTEXT, [
     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)
index 75da56aef65f078da01f6ec8f174969c93147c74..bf72c82cfac13415f3d0c4a6060804b70ab9ca1f 100644 (file)
@@ -299,12 +299,9 @@ Must be the car of an entry in `LilyPond-command-alist'."
 (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)))
   
@@ -327,8 +324,6 @@ command."
                (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)))
index 1f7880a5e03b7f3f1ea0cad75fd1cda02a8bab99..aa87ebb6dbc672e91087e6db78c978ed606cb018 100644 (file)
@@ -254,22 +254,13 @@ pedal = \notes \relative c, {
 %  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 {
index 06d81a675a8560ab8ba0018ba1e40f3dc4dbf5e8..f060d8cf51095ce12cd40637b0e8cb38a447e13b 100644 (file)
@@ -535,6 +535,32 @@ AC_DEFUN(AC_STEPMAKE_GETTEXT, [
     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)
index a4ad6ea1244371da95394faf0ee5002facb684ad..b7f9c922c2ef2eaef1fe893a2defd45d19da3e34 100644 (file)
@@ -4,7 +4,10 @@ import string
 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)
@@ -12,10 +15,10 @@ for a in sys.argv[1:]:
            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)