lilyp...@googlecode.com writes:

> Comment #4 on issue 1821 by reinhold...@gmail.com: GUB argument list
> too long
> http://code.google.com/p/lilypond/issues/detail?id=1821
>
> Okay, here's a proof-of-concept: In lysdoc-rules.make, instead of
> passing the list of filenames directly to lys-to-tely, we simply loop
> over them and write them one-by-one to
> $(outidr)/collated-files.list. This one file is then passed to
> lys-to-tely. In particular, lysdoc-rules.make would look like:
>
> ================
>
> $(outdir)/collated-files.list: $(COLLATED_FILES)
>       echo "Generating $(outdir)/collated-files.list..."
>       $(foreach f,$(COLLATED_FILES),@echo $f >> $(outdir)/collated-files.txt)
>
> $(outdir)/collated-files.tely: $(outdir)/collated-files.list
>       $(LYS_TO_TELY) --name=$(outdir)/collated-files.tely
> --title="$(TITLE)" --author="$(AUTHOR)" --filename-file $^

You should clear out the list before appending to it and use the right
filename for it.  And since a shell is getting called for each line of
the list, this is not necessarily going to be the most efficient
solution.  Have you tried this?  I am not sure it would result in
multiple commands.


-- 
David Kastrup


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

Reply via email to