$NetBSD: patch-ai,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $ --- plugins-scripts/subst.in.orig 2005-08-04 10:24:09.000000000 -0700 +++ plugins-scripts/subst.in 2005-08-04 10:24:23.000000000 -0700 @@ -9,13 +9,14 @@ sub(/\/.*\//,"",c); for (dir in path) { + if (match(path[dir], /.tools/ ) != 0 ) { + continue; + } cmd = "test -x " path[dir] "/" c; if (system(cmd)==0) { return path[dir] "/" c; } } - - return c; }