> . saying
>
> lilypond -o foo.tex foo.ly
>
> creates a file called `foo.tex.tex' -- is this really
> intentional?
What Han-Wen meant in his answer is that typically, lilypond will
output two files, one .tex file and one .midi file, you could also
get for example a .ps file. For this reason, the -o option does
only set the base name of the file.
Hmm, I think it would be easy to check whether the file name has
`.tex' as a suffix. If yes, it should be removed. And if someone
really wants `foo.tex.tex', he must enter `-o foo.tex.' -- I think
this is the default behaviour of many other programs.
Werner