]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.4.12.jcn2
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 6 Apr 2002 17:31:20 +0000 (19:31 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 6 Apr 2002 17:31:20 +0000 (19:31 +0200)
lilypond_1_4
============

* Documentation/windows/gs-profile.sh:
* Documentation/windows/gsview-profile.sh: Remove.

* lilypond-indent.el: New file, from HEAD.  Fixes lilypond-mode.

1.4.12.uu1
==========

* Make Timing_engraver instantiatable, add to Score_performer. Fixes bar checks
in MIDI

1.4.12.af1
==========

* Debian patches.

18 files changed:
.cvsignore
CHANGES
Documentation/bibliography/html-long.bst
Documentation/topdocs/INSTALL.texi
Documentation/windows/cygwin-installer.patch
Documentation/windows/gs-profile.sh
Documentation/windows/gsview-profile.sh
VERSION
debian/changelog
debian/control
debian/control.foka
debian/control.potato
debian/rules
lily/timing-translator.cc
ly/performer.ly
ports/ports.make
scripts/lilypond-book.py
stepmake/GNUmakefile.in

index fd0c7ae134998a9c46c081ddb6c5b7ac4d14663b..773081c5e178fb7159f78f1c73c4660b19200021 100644 (file)
@@ -10,9 +10,22 @@ configure
 .gdbinit
 *~
 #*
-*.txt
+*.aux
+*.dvi
+*.eps
 *.html
+*.latex
+*.log
+*.ly
+*.midi
+*.pdf
 *.png
+*.ps
+*.tely
+*.tex
+*.txt
+*[0-9]pk
+ly2dvi.dir
 out
 out-www
 afm
diff --git a/CHANGES b/CHANGES
index d4e884ebe3a7823670eba98b848c840c39d70970..c48e091365a3375418343b8e0ef1d01811bc3b58 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,24 @@
+lilypond_1_4
+============
+
+* Documentation/windows/gs-profile.sh:
+* Documentation/windows/gsview-profile.sh: Remove.
+
+* lilypond-indent.el: New file, from HEAD.  Fixes lilypond-mode.
+
+1.4.12.uu1
+==========
+
+* Make Timing_engraver instantiatable, add to Score_performer. Fixes bar checks
+in MIDI
+
+
+1.4.12.af1
+==========
+
+* Debian patches.
+
+
 1.4.12.jcn1
 ===========
 
index 85a6163586ad96875688e88aaca62174ec125d34..017451ab6226d120fcd390acd3c73e5d3a4c5160 100644 (file)
@@ -1,7 +1,7 @@
 % BibTeX bibliography style `html-long'
 %   spits out HTML-formatted bibliography in place of bbl output
 % by David Kotz dfk@cs.dartmouth.edu
-% $Id: html-long.bst,v 1.1 1999/03/11 22:00:27 dfk Exp dfk $
+% $Id: html-long.bst,v 1.1.2.1 2001/12/29 22:51:44 fred Exp $
 %    modified from
 % BibTeX standard bibliography style `alpha'
        % version 0.99a for BibTeX versions 0.99a or later, LaTeX version 2.09.
index d422f4e41400524c4949338a12cd7320f78856c9..a4fbda11e3d68adc0d0a17ab9b552d95d9b56d36 100644 (file)
@@ -81,11 +81,11 @@ use
 @uref{ftp://ftp.xcf.berkeley.edu/pub/xdelta/, xdelta}.
  This is much safer than using patches, and is the recommended way.
 
-The following command produces @file{lilypond-1.4.3.tar.gz} from
-@file{lilypond-1.4.2.tar.gz} identical (up to compression dates) to the .3
+The following command produces @file{lilypond-1.4.11.tar.gz} from
+@file{lilypond-1.4.10.tar.gz} identical (up to compression dates) to the .11
 on the FTP site.
 @example
-  xdelta patch lilypond-1.4.2-1.4.3.xd lilypond-1.4.2.tar.gz
+  xdelta patch lilypond-1.4.10-1.4.11.xd lilypond-1.4.10.tar.gz
 @end example
 @end itemize
 
@@ -99,8 +99,8 @@ You need the following packages to compile Lilypond.
 @item A reasonably new C++ compiler:  EGCS 1.1, GCC 2.95.2 or
 newer. Check out @uref{ftp://ftp.gnu.org/gnu/gcc/, the gcc site}.
 
-@item  Python 1.5,
-Check out @uref{http://www.python.org, the python website}.
+@item  Python 1.5 or 2.1
+Check out @uref{http://www.python.org/, the python website}.
 
 @item  GUILE 1.3.4 or newer,  check out
 @uref{http://www.gnu.org/software/guile/guile.html,the GUILE webpage}.
@@ -115,7 +115,7 @@ make FTP directory}.
 Check out @uref{http://www.gnu.org/software/flex/,the Flex webpage}.
 
 @item Bison (version 1.25 or newer).
-Check out @uref{http://www.gnu.org/software/bison/,the bison  webpage}
+Check out @uref{http://www.gnu.org/software/bison/,the bison webpage}
 
 @item @TeX{}.
 
@@ -224,7 +224,7 @@ texinfo-4.0b} or
 @uref{ftp://alpha.gnu.org/gnu/texinfo-4.0b.tar.gz,texinfo-4.0b}
 @end itemize
 
-@section Building  LilyPond
+@section Building LilyPond
 
 to install GNU LilyPond, type:
 @example 
@@ -340,10 +340,10 @@ A LinuxPPC RPM can be made using the @file{lilypond.redhat.spec} file.
 
 @subsection SuSE
 
-Some SUSE RPMS should available from
+Some SuSE RPMS should available from
 @uref{ftp://ftp.lilypond.org/pub/LilyPond/binaries/SuSE}.
 
-You can also compile a RPM for SUSE yourself.  A spec file is in
+You can also compile a RPM for SuSE yourself.  A spec file is in
 @file{make/out/lilypond.suse.spec}, see the instructions for building
 the Red Hat RPM.
 
@@ -356,7 +356,7 @@ gs_serv gs_lib gs_fonts guile
 No precompiled packages for Slackware are available.
 
 Problems have been reported with Slackware 7.0; apparently, it ships
-with a faulty compiler. Do not compile LilyPond with -O2 on this
+with a faulty compiler.  Do not compile LilyPond with -O2 on this
 platform.
 
 @subsection Mandrake
@@ -418,12 +418,12 @@ make the .deb by doing, for example:
        $ su - root
        # dpkg --purge lilypond lilypond1.3
        # exit
-       $ tar xzf lilypond-1.4.3.tar.gz
-       $ cd lilypond-1.4.3
-       $ dch -p -v 1.4.3-0.local.1 "Local build."
+       $ tar xzf lilypond-1.4.11.tar.gz
+       $ cd lilypond-1.4.11
+       $ dch -p -v 1.4.11-0.local.1 "Local build."
        $ debuild -B
        $ su - root
-       # dpkg -i ../lilypond_1.4.3*.deb
+       # dpkg -i ../lilypond_1.4.11*.deb
        # exit
        $
 @end example
@@ -445,7 +445,7 @@ in addition to the those needed for running:
 @item tetex-base, tetex-bin, tetex-extra, libkpathsea-dev or tetex-dev
 @item dpkg-dev, debhelper, fakeroot
 @item gs, netpbm
-@item pnmtopng (only in Debian 2.2; pnmtopng has been merged with netpbm
+@item pnmtopng (only in Debian 2.2: pnmtopng has been merged with netpbm
   in Debian testing/unstable.)
 @end itemize
 
@@ -463,12 +463,12 @@ For Debian 2.2:
                netpbm pnmtopng m4 gettext
 @end example
 
-For Debian in development ("unstable", the future 2.3 or 3.0):
+For Debian in development ("unstable", the future Debian 3.0):
 
 @example
        apt-get install binutils cpp gcc libc6-dev \
                g++ libstdc++2.10-dev \
-               python-base libguile-dev tetex-bin libkpathsea-dev \
+               python libguile-dev tetex-bin libkpathsea-dev \
                tetex-extra flex bison texinfo bibtex2html groff gs \
                netpbm m4 gettext
 @end example
index e7c7be0b07de4e2634270ffac30bbb5904814d83..3fc369c7b12d90a597db8b79d7a7102265171e2d 100644 (file)
@@ -23,9 +23,9 @@ diff -purN --exclude=*~ --exclude=zlib ../cinstall/ChangeLog ./ChangeLog
 @@ -3705,4 +3720,4 @@ Sat Apr  1 20:48:09 2000  Christopher Fa
        * zlib/Makefile.in: Regenerate from Makefile.am
  
- %%% $Id: ChangeLog,v 2.194 2002/02/18 13:54:49 rbcollins Exp $
--$Revision: 2.194 $
-+$Revision: 2.194.jcn1 $
+ %%% $Id: cygwin-installer.patch,v 1.3.2.3 2002/02/19 10:29:19 fred Exp $
+-$Revision: 1.3.2.3 $
++$Revision: 1.3.2.3 $
 Binary files ../cinstall/LilyPond.ico and ./LilyPond.ico differ
 diff -purN --exclude=*~ --exclude=zlib ../cinstall/Makefile.in ./Makefile.in
 --- ../cinstall/Makefile.in    Mon Feb 18 14:56:38 2002
index 3e533b1f71f3bbfe3722852c0b451a2614b83ff2..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,22 +0,0 @@
-#!@SHELL@
-# /etc/profile.d/gs-profile.sh -- Check for GhostScript
-
-gs550="/usr/windows/gstools/gs5.50"
-gs650="/usr/windows/gs/gs6.50"
-
-# Maybe read registry, but that may be hairy?
-# 
-# $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
-# "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
-
-## we set GS_LIB although the registry keys have been set.
-
-if [ -e "$gs550/gswin32.exe" ]; then
-       PATH="$gs550:$PATH"
-       GS_LIB="$gs550/lib:"${GS_LIB:=""}
-fi
-
-if [ -e "$gs650/bin/gswin32.exe" ]; then
-       PATH="$gs650/bin:$PATH"
-       GS_LIB="$gs650/lib:"${GS_LIB:=""}
-fi
index eb5aeaf8a6a93e8bb1dc04a8936dc31cc0864dd0..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,19 +0,0 @@
-#!@SHELL@
-# /etc/profile.d/gsview-profile.sh  Check for GhostView
-
-gsview26="/usr/windows/gstools/gsview"
-gsview36="/usr/windows/Ghostgum/GSview"
-
-# Maybe read registry, but that may be hairy?
-# 
-# $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
-# "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
-
-if [ -e "$gsview26/gsview32.exe" ]; then
-       PATH="$gsview26:$PATH"
-fi
-
-if [ -e "$gsview36/gsview32.exe" ]; then
-       PATH="$gsview36:$PATH"
-fi
-
diff --git a/VERSION b/VERSION
index e0bff46ad9c80eca873d8de91ae05e9161745f5d..e9a8965cf79d0b24bdca3e79c8bfb9b548191109 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=4
 PATCH_LEVEL=12
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=jcn2
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index 7329576d363d0c4724f016691a02e5fc79653ae8..5b63b6103aedd39b496fbfd387fd9f0293b8d181 100644 (file)
@@ -1,3 +1,48 @@
+lilypond (1.4.12-1) unstable; urgency=high
+
+  * New upstream maintenance release.
+  * Several important fixes (including our bison-related patch added
+    to 1.4.10-1) are included since 1.4.11 this release.  (Now, I
+    don't even need to increase teTeX's extra_mem_top, extra_mem_bot
+    or pool_size!  :-)  Please include in Woody.
+  * Fixed a typo in lilypond-doc package description: typestting ->
+    typesetting.  Thanks, Matt Zimmerman!  (Closes: Bug#125083)
+
+ -- Anthony Fok <foka@debian.org>  Sun, 24 Feb 2002 02:06:15 +0800
+
+lilypond (1.4.10-1) unstable; urgency=high
+
+  * New upstream release.
+  * lilypond failed to build with bison >= 1.30 because bison's output file
+    has been renamed.  Applied an upstream fix.  (Closes: Bug#133692)
+  * lilypond's documentation also failed to build with the latest
+    tetex or texinfo package.  Instead of increasing extra_mem_top and
+    extra_mem_bot, increasing pool_size does the trick.
+
+ -- Anthony Fok <foka@debian.org>  Mon, 18 Feb 2002 11:41:31 +0800
+
+lilypond (1.4.9-1) unstable; urgency=high
+
+  * New upstream release.
+  * Oops, libc6-dev is known as libc6.1-dev and libc-dev on some
+    architectures.  Fixed Build-Depends so that lilypond can be built
+    on all platforms.  Thanks to Colin Watson for reporting the bug.
+    (Closes: Bug#120208)
+
+ -- Anthony Fok <foka@debian.org>  Tue, 27 Nov 2001 23:28:11 +0800
+
+lilypond (1.4.8-2) unstable; urgency=high
+
+  * [debian/rules]: Use -s instead of -a so that lilypond would get built
+     on all architectures even when the dummy lilypond1.3 package isn't
+     built.  Thanks to Ryan Murray for the report.  (Closes: Bug#117622)
+  * Depends on python instead of python-base.  The python scripts in
+    lilypond work with old and new Python versions.
+  * Build-Depends on "-z combreloc"-enabled binutils (>= 2.11.92.0.10-2)
+    and libc6-dev (>= 2.2.4-5) so that lily runs faster!  :-)
+
+ -- Anthony Fok <foka@debian.org>  Sun, 11 Nov 2001 10:45:10 +0800
+
 lilypond (1.4.8-1) unstable; urgency=high
 
   * New upstream release.  (Closes: Bug#111132)
@@ -810,8 +855,3 @@ lilypond (0.1.0-1) unstable; urgency=low
   * Initial Release.
 
  -- Anthony Fok <foka@gpu.srv.ualberta.ca>  Wed,  6 Aug 1997 04:40:57 -0600
-
-Local variables:
-mode: debian-changelog
-add-log-mailing-address: "foka@debian.org"
-End:
index c856770ec11d406682943b64a06939f2c645a4e7..e9ec2091a880575cdef6fe5f2bd488363c69d7ba 100644 (file)
@@ -1,16 +1,16 @@
 Source: lilypond
-Build-Depends: debhelper (>= 3.0.5), python-base (>= 1.5.2-4), libguile-dev (>= 1:1.4-9), tetex-bin, libkpathsea-dev, tetex-extra, flex (>= 2.5.4a-14), bison, texinfo (>= 4.0b-2), groff, m4, gettext (>= 0.10.36-1)
+Build-Depends: debhelper (>= 3.0.5), binutils (>= 2.11.92.0.10-2), libc6-dev (>= 2.2.4-6) | libc6.1-dev (>= 2.2.4-6) | libc0.2-dev (>= 2.2.4-6), python, libguile-dev (>= 1:1.4-9), tetex-bin, libkpathsea-dev, tetex-extra, flex (>= 2.5.4a-14), bison, texinfo (>= 4.0b-2), groff, m4, gettext (>= 0.10.36-1)
 Build-Depends-Indep: bibtex2html, gs | gs-aladdin, netpbm (>= 2:9.10-1)
 Section: tex
 Priority: optional
 Maintainer: Anthony Fok <foka@debian.org>
-Standards-Version: 3.5.5
+Standards-Version: 3.5.6
 
 Package: lilypond
 Architecture: any
 Replaces: lilypond1.3
 Provides: lilypond1.3
-Depends: ${shlibs:Depends}, tetex-bin (>= 1.0.5-1), python-base (>= 1.5.2-4), guile
+Depends: ${shlibs:Depends}, tetex-bin (>= 1.0.5-1), python, guile
 Recommends: lilypond-doc, tetex-extra (>= 1.0-1)
 Conflicts: lilypond1.3 (<= 1.3.132-1), musixtex-fonts
 Description: A program for printing sheet music.
@@ -28,14 +28,14 @@ Description: A program for printing sheet music.
 Package: lilypond-doc
 Section: doc
 Architecture: all
-Suggests: lilypond (>= 1.4.8-1), postscript-viewer, www-browser
+Suggests: lilypond (>= 1.4.11-1), postscript-viewer, www-browser
 Description: LilyPond Documentation in HTML, PS and DVI formats
  This package contains the HTML, PostScript and DVI documentation for the
- LilyPond music typestting software.
+ LilyPond music typesetting software.
 
 Package: lilypond1.3
 Architecture: arm i386 m68k powerpc sparc
-Depends: lilypond (>= 1.4.8-1)
+Depends: lilypond (>= 1.4.11-1)
 Description: Dummy package for transition to new stable lilypond.
  This dummy package provides a transition from the previous lilypond1.3
  package back to a newer lilypond because the stable 1.4 series has arrived.
index c856770ec11d406682943b64a06939f2c645a4e7..e9ec2091a880575cdef6fe5f2bd488363c69d7ba 100644 (file)
@@ -1,16 +1,16 @@
 Source: lilypond
-Build-Depends: debhelper (>= 3.0.5), python-base (>= 1.5.2-4), libguile-dev (>= 1:1.4-9), tetex-bin, libkpathsea-dev, tetex-extra, flex (>= 2.5.4a-14), bison, texinfo (>= 4.0b-2), groff, m4, gettext (>= 0.10.36-1)
+Build-Depends: debhelper (>= 3.0.5), binutils (>= 2.11.92.0.10-2), libc6-dev (>= 2.2.4-6) | libc6.1-dev (>= 2.2.4-6) | libc0.2-dev (>= 2.2.4-6), python, libguile-dev (>= 1:1.4-9), tetex-bin, libkpathsea-dev, tetex-extra, flex (>= 2.5.4a-14), bison, texinfo (>= 4.0b-2), groff, m4, gettext (>= 0.10.36-1)
 Build-Depends-Indep: bibtex2html, gs | gs-aladdin, netpbm (>= 2:9.10-1)
 Section: tex
 Priority: optional
 Maintainer: Anthony Fok <foka@debian.org>
-Standards-Version: 3.5.5
+Standards-Version: 3.5.6
 
 Package: lilypond
 Architecture: any
 Replaces: lilypond1.3
 Provides: lilypond1.3
-Depends: ${shlibs:Depends}, tetex-bin (>= 1.0.5-1), python-base (>= 1.5.2-4), guile
+Depends: ${shlibs:Depends}, tetex-bin (>= 1.0.5-1), python, guile
 Recommends: lilypond-doc, tetex-extra (>= 1.0-1)
 Conflicts: lilypond1.3 (<= 1.3.132-1), musixtex-fonts
 Description: A program for printing sheet music.
@@ -28,14 +28,14 @@ Description: A program for printing sheet music.
 Package: lilypond-doc
 Section: doc
 Architecture: all
-Suggests: lilypond (>= 1.4.8-1), postscript-viewer, www-browser
+Suggests: lilypond (>= 1.4.11-1), postscript-viewer, www-browser
 Description: LilyPond Documentation in HTML, PS and DVI formats
  This package contains the HTML, PostScript and DVI documentation for the
- LilyPond music typestting software.
+ LilyPond music typesetting software.
 
 Package: lilypond1.3
 Architecture: arm i386 m68k powerpc sparc
-Depends: lilypond (>= 1.4.8-1)
+Depends: lilypond (>= 1.4.11-1)
 Description: Dummy package for transition to new stable lilypond.
  This dummy package provides a transition from the previous lilypond1.3
  package back to a newer lilypond because the stable 1.4 series has arrived.
index c7bd20e761b709956472148440f2da625e97ae9e..7d58814faa95968c4514c07579c900117cefb074 100644 (file)
@@ -28,7 +28,7 @@ Description: A program for printing sheet music.
 Package: lilypond-doc
 Section: doc
 Architecture: all
-Suggests: lilypond (>= 1.4.8-1), postscript-viewer, www-browser
+Suggests: lilypond (>= 1.4.11-1), postscript-viewer, www-browser
 Description: LilyPond Documentation in HTML, PS and DVI formats
  This package contains the HTML, PostScript and DVI documentation for the
- LilyPond music typestting software.
+ LilyPond music typesetting software.
index d854c688eb293703d36509f065ca9db21d17b69d..6c21b91e7ebebb35da0576faa19b556597dfdf22 100755 (executable)
@@ -17,8 +17,11 @@ d = usr/share/doc/$(package)
 
 # "main_memory = 263000" in /etc/texmf/texmf.cnf isn't large enough
 # for latex to process standchen.dvi.latex, so adding extra_mem_* ...
-export extra_mem_top = 100000
-export extra_mem_bot = 100000
+# export extra_mem_top = 100000
+# export extra_mem_bot = 100000
+# But now, building lilypond.dvi requires increased pool_size (2002-02-18)
+# export pool_size = 500000
+# But now, it seems that none of the above is needed in 1.4.11  (2002-02-24)
 export MODE = ljfour
 export BDPI = 600
 export USER_CFLAGS = -DDEBIAN
@@ -107,7 +110,7 @@ binary-indep: build-doc install
        dh_md5sums
        dh_builddeb
 
-binary-arch: DH_OPTIONS=-a
+binary-arch: DH_OPTIONS=-s
 binary-arch: build install
        dh_testdir
        dh_testroot
index 4b6758292f0c574ec7bc87d596ec02a2f0bcf31f..f5b2bf64d3f327667914f3d9804c2be467594d12 100644 (file)
@@ -152,3 +152,5 @@ Timing_translator::start_translation_timestep ()
   daddy_trans_l_->set_property ("measurePosition", measposp.smobbed_copy ());
 }
 
+
+
index 8cfa8204bd42543df4c7b53c5350b67f57b7b7df..2cfe9ab27c66dfe7ecaef74a00212ed1729ee76c 100644 (file)
@@ -122,6 +122,8 @@ ScoreContext = \translator {
        \accepts ChoirStaff
        \accepts RhythmicStaff
        \accepts ChordNames
+
+       \consists "Timing_translator"
        \consists "Swallow_performer"
 
        dynamicAbsoluteVolumeFunction = #default-dynamic-absolute-volume
index d02bca27bbd546407c718463cdedfb43390034be..6e0b84c3c564004d27bf00d0a1b202c1d308fc2b 100644 (file)
@@ -19,7 +19,7 @@ make-root?=$(wildcard /usr/local/share/lilypond/make)
 # make-root=<LilyPond's datadir>/make
 
 ifeq ($(SUBDIRS),)
-SUBDIRS = $(filter-out .,$(shell find . -maxdepth 1 -type d -not -name 'out*'))
+SUBDIRS = $(filter-out .,$(shell find . -maxdepth 1 -type d -not -name 'out*' -and -not -name 'CVS'))
 endif
 
 ifneq ($(make-root),)
index e4fa395d2b4fa46f9da157ff37fd7e8fa87f91e3..cf10c42f20c5ce06d1459ee828596409249723aa 100644 (file)
@@ -49,7 +49,7 @@ import operator
 
 program_version = '@TOPLEVEL_VERSION@'
 if program_version == '@' + 'TOPLEVEL_VERSION' + '@':
-       program_version = '1.4.9'
+       program_version = '1.5.18'
 
 # if set, LILYPONDPREFIX must take prevalence
 # if datadir is not set, we're doing a build and LILYPONDPREFIX 
@@ -98,7 +98,7 @@ include_path = [os.getcwd()]
 
 
 # g_ is for global (?)
-
+g_extra_opts = ''
 g_here_dir = os.getcwd ()
 g_dep_prefix = ''
 g_outdir = ''
@@ -106,6 +106,7 @@ g_force_lilypond_fontsize = 0
 g_read_lys = 0
 g_do_pictures = 1
 g_num_cols = 1
+
 format = ''
 g_run_lilypond = 1
 no_match = 'a\ba'
@@ -368,6 +369,7 @@ option_definitions = [
   ('EXT', 'f', 'format', 'set format.  EXT is one of texi and latex.'),
   ('DIM',  '', 'default-music-fontsize', 'default fontsize for music.  DIM is assumed to be in points'),
   ('DIM',  '', 'default-lilypond-fontsize', 'deprecated, use --default-music-fontsize'),
+  ('OPT', '', 'extra-options' , 'Pass OPT quoted to the lilypond command line'),
   ('DIM', '', 'force-music-fontsize', 'force fontsize for all inline lilypond. DIM is assumed be to in points'),
   ('DIM', '', 'force-lilypond-fontsize', 'deprecated, use --force-music-fontsize'),
   ('DIR', 'I', 'include', 'include path'),
@@ -475,7 +477,9 @@ re_dict = {
                  },
 
 
-       # why do we have distinction between @mbinclude and @include? 
+       # why do we have distinction between @mbinclude and @include?
+
+       
        'texi': {
                 'include':  '(?m)^[^%\n]*?(?P<match>@mbinclude[ \n\t]+(?P<filename>[^\t \n]*))',
                 'input': no_match,
@@ -484,13 +488,9 @@ re_dict = {
                 'landscape': no_match,
                 'verbatim': r"""(?s)(?P<code>@example\s.*?@end example\s)""",
                 'verb': r"""(?P<code>@code{.*?})""",
-                'lilypond-file': '(?m)^(?!@c)(?P<match>@lilypondfile(\[(?P<options>.*?)\])?{(?P<filename>[^}]+)})',
-                'lilypond' : '(?m)^(?!@c)(?P<match>@lilypond(\[(?P<options>.*?)\])?{(?P<code>.*?)})',
-# pyton2.2b2 barfs on this
-                'lilypond-block': r"""(?m)^(?!@c)(?P<match>(?s)(?P<match>@lilypond(\[(?P<options>.*?)\])?\s(?P<code>.*?)@end lilypond\s))""",
-
-# 1.5.2 barfs on this. 
-# 'lilypond-block': r"""(?m)^(?!@c)(?P<match>@lilypond(\[(?P<options>.*?)\])?\s(?P<code>.*?)@end lilypond\s)""",
+                'lilypond-file': '(?m)^(?P<match>@lilypondfile(\[(?P<options>[^]]*)\])?{(?P<filename>[^}]+)})',
+                'lilypond' : '(?m)^(?P<match>@lilypond(\[(?P<options>[^]]*)\])?{(?P<code>.*?)})',
+                'lilypond-block': r"""(?ms)^(?P<match>@lilypond(\[(?P<options>[^]]*)\])?\s(?P<code>.*?)@end lilypond)\s""",
                  'option-sep' : ',\s*',
                  'intertext': r',?\s*intertext=\".*?\"',
                  'multiline-comment': r"(?sm)^\s*(?!@c\s+)(?P<code>@ignore\s.*?@end ignore)\s",
@@ -504,7 +504,14 @@ for r in re_dict.keys ():
        olddict = re_dict[r]
        newdict = {}
        for k in olddict.keys ():
-               newdict[k] = re.compile (olddict[k])
+               try:
+                       newdict[k] = re.compile (olddict[k])
+               except:
+                       print 'invalid regexp: %s' % olddict[k]
+
+                       # we'd like to catch and reraise a more detailed  error, but
+                       # alas, the exceptions changed across the 1.5/2.1 boundary.
+                       raise "Invalid re"
        re_dict[r] = newdict
 
        
@@ -534,8 +541,10 @@ def bounding_box_dimensions(fname):
        str = fd.read ()
        s = re.search('%%BoundingBox: ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)', str)
        if s:
-               return (int (s.group (3) - s.group (1) + 0.5),
-                       int (s.group (4) - s.group (2) + 0.5))
+               
+               gs = map (lambda x: string.atoi (x), s.groups ())
+               return (int (gs[2] - gs[0] + 0.5),
+                       int (gs[3] - gs[1] + 0.5))
        else:
                return (0,0)
 
@@ -977,20 +986,19 @@ def system (cmd):
 
 
 def get_bbox (filename):
-       f = open (filename)
+       system ('gs -sDEVICE=bbox -q  -sOutputFile=- -dNOPAUSE %s -c quit > %s.bbox 2>&1 ' % (filename, filename))
+
+       box = open (filename + '.bbox').read()
+       m = re.match ('^%%BoundingBox: ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)', box)
        gr = []
-       while 1:
-               l =f.readline ()
-               m = re.match ('^%%BoundingBox: ([0-9]+) ([0-9]+) ([0-9]+) ([0-9]+)', l)
-               if m:
-                       gr = map (string.atoi, m.groups ())
-                       break
+       if m:
+               gr = map (string.atoi, m.groups ())
        
        return gr
 
 def make_pixmap (name):
        bbox = get_bbox (name + '.eps')
-       margin = 3
+       margin = 0
        fo = open (name + '.trans.eps' , 'w')
        fo.write ('%d %d translate\n' % (-bbox[0]+margin, -bbox[1]+margin))
        fo.close ()
@@ -1046,7 +1054,7 @@ def compile_all_files (chunks):
                        if g_outdir:
                                lilyopts = lilyopts + '--dep-prefix=' + g_outdir + '/'
                texfiles = string.join (tex, ' ')
-               system ('lilypond --header=texidoc %s %s' % (lilyopts, texfiles))
+               system ('lilypond --header=texidoc %s %s %s' % (lilyopts, g_extra_opts, texfiles))
 
                #
                # Ugh, fixing up dependencies for .tex generation
@@ -1329,6 +1337,8 @@ for opt in options:
        elif o == '--default-lilypond-fontsize':
                print "--default-lilypond-fontsize is deprecated, use --default-music-fontsize"
                default_music_fontsize = string.atoi (a)
+       elif o == '--extra-options':
+               g_extra_opts = a
        elif o == '--force-music-fontsize':
                g_force_lilypond_fontsize = string.atoi(a)
        elif o == '--force-lilypond-fontsize':
index a50edb862e2167e7f34200b51a16056bf3e2892d..60ea150fa55d886ef74090cc7a659c7b417032a1 100644 (file)
@@ -19,7 +19,7 @@ endif
 #
 SCRIPTS = configure aclocal.m4
 README_FILES = CHANGES README TODO
-README_TXT_FILES = AUTHORS.txt INSTALL.txt
+README_TXT_FILES =
 EXTRA_DIST_FILES = $(IN_FILES) VERSION $(README_FILES)  $(SCRIPTS) INSTALL.texi
 NON_ESSENTIAL_DIST_FILES = $(README_TXT_FILES)
 #