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: Mike Solomon
Subject: Re: Issue 1821 in lilypond: GUB argument list too long
Date: Tue, 16 Aug 2011 12:47:13 +0200

On Aug 16, 2011, at 12:06 PM, David Kastrup wrote:

> Reinhold Kainhofer <address@hidden> writes:
> 
>> On Di., 16. Aug. 2011 07:46:32 CEST, David Kastrup <address@hidden> wrote:
>> 
>>> address@hidden writes:
>>>> I think it's literally that we have too many regression test files to
>>>> fit into the current allowable file size.
>>> 
>>> Use
>>> <URL:info:make#Text%20Functions>
>>> for splitting the file lists into two groups, like those starting with
>>> letters a-k and those that don't.
>> 
>> I think the lys-to-tely call should stay one call. However, it would
>> be quite simple to write the filenames to a file and pass that to
>> lys-to-tely (like we do it in lilypond-book already for compiling the
>> snippets).
> 
> If we can't pass the filenames to a call of lys-to-tely because of
> command line length limits, I don't see us passing the filenames to
> "echo" or similar shell commands more easily in order to write them to a
> file.
> 

The filenames can be written to a file via a python script, something like:

import os
import sys

foo = filter(lambda x : x.split('.')[-1] == 'ly', os.listdir(sys.argv[1]))
outfi = file('bar.txt','w')
for x in foo : outfi.write(x+'\n')
outfi.close ()

Cheers,
MS



reply via email to

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