Automatically executing the right program

Ted Percival ted at
Mon Jan 21 12:14:04 EST 2008

Ted Percival wrote:
> How about this patch? The ccontrol config file can contain things like
>   cc = /usr/bin
> If invoked as gcc-4.2 it will execute /usr/bin/gcc-4.2, etc.

That patch was a bit buggy (see <>), I have 
updated it so it works properly now:;a=blob;f=debian/patches/find-cmd-by-dir;hb=HEAD

Is there a reason why ccontrol doesn't just peruse PATH until it finds a 
matching command that is not ccontrol? I think that would be easier to 
use, then the config file would only be necessary to configure more 
interesting things like no-parallel, distcc-hosts, etc.


More information about the ccontrol mailing list