X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fframework-eps.scm;h=fcd0779198792f6e0483c70a8a0b915c016d2b02;hb=9ae52034113dcfbbc98fd7a0f8075ca3ea2cf3c9;hp=85a4a9863600332d3c77044b92d456068a14cce6;hpb=3f3019866f87eede1da58b6f2c64097eb5b9b37c;p=lilypond.git diff --git a/scm/framework-eps.scm b/scm/framework-eps.scm index 85a4a98636..fcd0779198 100644 --- a/scm/framework-eps.scm +++ b/scm/framework-eps.scm @@ -2,7 +2,7 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 2004--2006 Han-Wen Nienhuys +;;;; (c) 2004--2007 Han-Wen Nienhuys (define-module (scm framework-eps)) @@ -94,6 +94,7 @@ stencil, so LaTeX includegraphics doesn't fuck up the alignment." (tex-system-port (open-output-string)) (texi-system-port (open-output-string)) + (count-system-port (open-output-string)) (widened-stencils (widen-left-stencil-edges stencils)) (counted-systems (count-list widened-stencils)) (eps-files (map dump-counted-stencil counted-systems)) @@ -123,13 +124,17 @@ stencil, so LaTeX includegraphics doesn't fuck up the alignment." (display "@c eof." texi-system-port) (display "% eof. " tex-system-port) - + (display (format "~a" (length stencils)) count-system-port) (dump-infinite-stack-EPS stencils) (postprocess-output book framework-eps-module (format "~a.eps" basename) (ly:output-formats)) (write-file texi-system-port "texi") (write-file tex-system-port "tex") + + ;; do this as the last action so we know the rest is complete if + ;; this file is present. + (write-file count-system-port "count") ))