howto .CURDIR?

Joe Marcus Clarke marcus at
Tue Nov 17 18:40:29 EST 2009

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.


> Host and jail are 8.0-RC2, tinderbox is 3.2.
> Thanks
> Chris
> _______________________________________________
> tinderbox-list at mailing list
> To unsubscribe, send any mail to "tinderbox-list-unsubscribe at"
PGP Key :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the tinderbox-list mailing list