This is a minimal fix, the default behaviour of producing PDF
echo '{a b c}' | out/bin/lilypond -
still does not work. What does work now is the PS output, eg
echo '{a b c}' | out/bin/lilypond --ps -
(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"))
+ (ly:warning (_ "cannot convert <stdout> to ~S") "PDF")
(postscript->pdf w h name))))
(define-public (convert-to-png book name)