Quoting poto...@posteo.de (poto...@posteo.de):
> I'm using Mac OS. There are no programs accessing the
> files. However, I just noticed that everything is alright the first
> time I render the file. But the second time, when the existing svg
> file needs to be overwritten, the ps file won't get deleted. When I
> delete both the svg and the ps, the ps is deleted again after the next
> run.

Is there some sort of version control going on in the background?
After all, in your script you have:
pdfcrop --margins 1 '$file_base_name.pdf' '$file_base_name.pdf'
where the output filename is the same as the input filename.

If there is, could your script be deleting a "wrong" version.

(AFAICT in linux, the ps/pdf conversion and deletion is done within
the lilypond binary. I seem to recall a time when the .ps got left
behind but I just deleted it in my script. Linux ext filesystems allow
you to delete files whether or not other processes still have them open.)

Cheers,
David.

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

Reply via email to