bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 1821 in lilypond: GUB argument list too long


From: David Kastrup
Subject: Re: Issue 1821 in lilypond: GUB argument list too long
Date: Tue, 16 Aug 2011 14:27:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

address@hidden writes:

> Comment #4 on issue 1821 by address@hidden: 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]