Am 2007-05-04 um 23:03 schrieb Aditya Mahajan:
Example: My songbook is a product. Every song is a component. If I change the order of the components in the product, ConTeXt (texmfstart, texexec, whoever) doesn't reckognize that, so I get the scores in the old order, i.e. with the wrong title & lyrics! Similar with my test product that only imports one component (for debugging the notes): If I change the component to import, I always get the last score that I checked.
It has been a while since I looked at the lilypond module. This is how I understand what is happening. The pdfs are not generated again in the second run. So, you get the old versions. Try deleting the lilypond pdfs, change the order of components, and you should get missing images.
True - I get missing images (placeholders). If I delete all the temporary files (about 9 for every song!) I sometimes get nothing at all (only placeholders), while normally also the Ruby script does create something...
And remember: It works with Perl texexec!
Maybe --ifchanged in not honored at all and lilypond is run every time, irrespective of whether the snippet has changed or not.
No, it works completely correct, as far as I can tell. But I don't get references and TOC, so I need a final Ruby run.
BTW, how slow if lilypond, if you ask it just to create small music snippets and not do the page layout etc. If it runs reasonably fast, then there may be no need to do all this --ifchanged stuff. Just as metapost graphics are included.
I use only small snippets - simple folksongs need seldom more than 3 lines - but a lot of them... LilyPond is fast enough, but the startup needs a while (typical for Python programs, but it also reads in fonts etc.), so it's really important to run only as needed. I attached the recent version of t-lilypond, perhaps you can find an obvious error. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)