Hi,

this little (simplified) shell script (I have called it ly2pdf)

#!/bin/sh
INFILE="$1"
OUTFILE=${INFILE%.ly}.pdf
lilypond --ps -o $$ "$INFILE"
ps2pdf $$.ps "$OUTFILE"
rm -f $$.ps

demonstrates the kind of mechanism that LilyPond needs. (But without needing such a script). It fixes the "lines.ly" issue, and it fixes accidentally and brutally deleting an already existing xxxx.ps file.

(With "simplified" I mean: you can not use any options or multiple files on the commandline with this script. It's just a demo)

--

MT

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to