Automatically executing the right program

Ted Percival ted at midg3t.net
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 <http://bugs.debian.org/455446>), I have 
updated it so it works properly now: 
http://tedp.id.au/gitweb/?p=ccontrol-debian.git;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.

-- 
\0



More information about the ccontrol mailing list