Thanks, that works. I set up a build system for Sublime (which has Lilypond
syntax highlighting with the SubLilyPond package).
{
"shell_cmd": "lilypond -dno-point-and-click '$file_base_name.ly'; pdfcrop
--margins 1 '$file_base_name.pdf' '$file_base_name.pdf'; pdf2svg '$file_base_name.pdf'
'$file_base_name.svg'; rm -f '$file_base_name.pdf'; rm -f '$file_base_name.ps'",
"selector": "source.lilypond",
}
This will render and crop a pdf, convert it to svg and delete the pdf. However,
I don't know why it won't remove the .ps file, or why it is created in the
first place. Is there a way to prevent Lilypond from creating the .ps file?