howto .CURDIR?

Chris Whitehouse cwhiteh at
Wed Nov 18 16:46:50 EST 2009

Joe Marcus Clarke wrote:
> On Tue, 2009-11-17 at 23:16 +0000, Chris Whitehouse wrote:
>> Hi
>> I am building and want to give it a few configuration 
>> options. I created a portstree.{PORTSTREE} file containing these lines:
>> .if ${.CURDIR:M*/editors/}
>> .endif
> The .env files are treated as shell files, not make files.  Therefore,
> this syntax is invalid.
>> With the above ./tc addPort -b {BUILD} -d editors/ -O 
>> silently fails after a short delay.
>> If I remove the .if and .endif lines I get
>> ===> Setting user-specified options for and 
>> dependencies.
>> and the port is added to the list. I haven't gone ahead with the build 
>> yet but the language specific message and the fact that print/cups is 
>> not added to the ports list suggests the options are being read.
>> Can I set a config for just one port?
> You can create a postBuildExtract Hook which copies a make.conf file to
> the /etc subdirectory within your Build.  That make.conf can actually
> contain the code above.

I'll do that thank you


More information about the tinderbox-list mailing list