]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-book.py
* python/lilylib.py (make_ps_images): only compute bbox when needed.
[lilypond.git] / scripts / lilypond-book.py
index 1da2f27ff794586af7f38114d3a250c9f788c301..c22601f3815c23386dde82a5e5a41a69682c8a06 100644 (file)
@@ -795,9 +795,12 @@ def process_snippets (cmd, snippets):
 
        if format == HTML or format == TEXINFO:
                for i in names:
-                       if os.path.exists (i + '.tex'):
+                       if not os.path.exists (i + '.ps') and os.path.exists (i + '.tex'):
                                to_eps (i)
                                ly.make_ps_images (i + '.eps', resolution=110)
+                       elif os.path.exists (i + '.ps'):
+                               ly.make_ps_images (i + '.ps', resolution=110)
+
 
 LATEX_DOCUMENT = r'''
 %(preamble)s