Boost logo

Boost-Build :

Subject: Re: [Boost-build] Merging files (same type for input and output)
From: Ian Emmons (ian_at_[hidden])
Date: 2013-09-03 10:27:52


import common ;

...

make «target-file-path» : «source-file-path» : @common.copy ;

On Sep 2, 2013, at 3:36 AM, Mike Gresens <mgresens_at_[hidden]> wrote:
> Thank you, Ian!
>
> Your suggestion sounds good :-)
> I am not sure how to rename/copy files - but I will try!
>
> Best regards,
> Mike...
>
> Am 29.08.2013 um 18:24 schrieb Ian Emmons <ian_at_[hidden]>:
>
>> Mike,
>>
>> Can you create the following generators:
>>
>> 1. .r to .rsrc-xyzzy
>> 2. .fr to .rsrc-xyzzy
>> 3. .rsrc-xyzzy to .rsrc
>>
>> where #3 merges all its dependents into one .rsrc output. Then make sure that if #3 has only one dependent, it will simply copy the input to output. Then you just create the following targets:
>>
>> result.rsrc with dependents foo.rsrc-xyzzy and bar.rsrc-xyzzy
>> foo.rsrc with dependent foo.rsrc-xyzzy
>> bar.rsrc with dependent bar.rsrc-xyzzy
>>
>> Does that sound workable?
>>
>> -Ian
>>
>>
>> On Aug 29, 2013, at 7:29 AM, Mike Gresens <mgresens_at_[hidden]> wrote:
>>> Hi there,
>>>
>>> i am trying to do something like that:
>>>
>>> 1) Generate foo.rsrc from foo.r
>>> 2) Generate bar.rsrc from bar.fr
>>> 3) Merge foo.rsrc and bar.rsrc into result.rsrc
>>>
>>> Steps 1 and 2 are done. I have now generators for that.
>>> But how can i merge the files? The types for input and output are the same…
>>> PS: I need the files foo.rsrc and bar.rsrc too. So i can't rename their type to something else...
>>>
>>> Thank you,
>>> Mike...
>> _______________________________________________
>> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk