[Cook] parallel confusion

Jody Hagins jody at atdesk.com
Sat Jun 21 20:17:25 EST 2003


On Fri, 20 Jun 2003 23:07:54 -0500 (CDT)
Jerry Pendergraft <jerry at endocardial.com> wrote:
> 
>    local cmd = [unsplit " " [catenate "PATH=" [getenv PATH]]
>       \[ -d [ts_C_dir] \] || mkdir [ts_C_dir] &&
>       /usr/local/bin/build_test_script --debug [ts_src] [C_file] &&
>       [compile-cmd %1 %2] [target_flags]
>         -D[catenate ARCH [arch-to-identifier %1]]
>         '-DRCS_ID\="'%3_ID'"' -c [C_file]
>         -o [target]                        &&
>       [post_proc] [C_file]] ;
> 



This is interesting, mainly because I can not seem to use the "%"
matches in functions as part of a patsubst.  For example...

some_var =
    [patsubst
        %0%1/%2/%3
        %0%1/[subst 1 6 %2]/%2/[myfunc %3]
        [some_list]];

does not work.  I get the entire value for %2 insead of the "subst"
part.  Also, I get an absolute "%3" passed into "myfunc" so I do not get
the last part of the file name.


Any ideas?


-- 
Jody Hagins

If the government doesn't trust the people, why doesn't it dissolve them
and elect a new people?



More information about the Cook-users mailing list