[darwinbuild] A couple of questions

Kevin Van Vechten kevin at opendarwin.org
Wed Nov 2 19:15:23 PST 2005


darwinbuild never accepts input from stdin.  However, you should be  
able to do the following:

# cat projects.txt | xargs -n 1 darwinbuild -fetch

- Kevin

On Nov 2, 2005, at 7:09 PM, ice wrote:

> One more question: what about autmatically fetching all the sources as
> well? I tried:
> # darwinbuild -fetch < projects.txt
> But it didn't pick up the list.
>
> On 11/2/05, Kevin Van Vechten <kevin at opendarwin.org> wrote:
>
>>> 2) Is there a way to automatically build a large number of projects?
>>> Should I just write a shell script that goes through the projects I
>>> want built?
>>
>> Yes, you can put a list of projects into a text file (one project
>> name per line) and use the following script:
>>
>> # darwinxref version '*' | sed -e 's/-.*//' > projects.txt
>> # /usr/local/share/darwinbuild/buildlist projects.txt
>>
>> There's also an experimental script that attempts to inspect the
>> dependencies and outputs a list of projects rearranged into an
>> optimal order:
>>
>> # /usr/local/share/darwinbuild/buildorder projects.txt ordered-
>> projects.txt
>>
>> You could then use buildlist on that result.
>>
>> Hope this helps,
>>
>> - Kevin
>>
> _______________________________________________
> darwinbuild mailing list
> darwinbuild at opendarwin.org
> http://www.opendarwin.org/mailman/listinfo/darwinbuild




More information about the darwinbuild-dev mailing list