This is still not a pseudo-filter, instead of a PDF (or PS) on stdout,
echo '{a b c}' | out/bin/lilypond -
now produces a file `-.pdf' (or with --ps flag `-.ps' is produced).
(w (if landscape paper-height paper-width))
(h (if landscape paper-width paper-height)))
(if (equal? (basename name ".ps") "-")
- (ly:warning (_ "cannot convert <stdout> to ~S") "PDF")
- (postscript->pdf w h name))))
+ (set! name (string-append "./" name)))
+ (postscript->pdf w h name)))
(define-public (convert-to-png book name)
(let* ((defs (ly:paper-book-paper book))