[Cook] commands in Cook actions

Aryeh M. Friedman aryeh.friedman at gmail.com
Sun May 16 05:34:47 EST 2010


Andreas Wagner wrote:
> Hello,
>
> I have this in my Howto.cook for automatically updating the version
> number in my command line utility:
>
> src/version.h:
>                     ;
>   

If this is a direct cut and paste from your cookbook the problem is 
likely this stray ; because cook sees it as the end of the recipe (i.e. 
no actions) and (perhaps I am wrong on this since I have never tried it) 
the stuff in {} is ignored because there is no trigger (recipe/cook 
control flow statement)

> {
>     echo "#define VERSION $(git describe)" > src/version.h;
> }
>
> after Cooking src/version.h contains:
> define VERSION
>
> Shouldn't Cook execute this command as it would be executed on the command line?
>
> Thanks,
> Andreas
> _______________________________________________
> Cook-users mailing list
> Cook-users at lists.auug.org.au
> http://lists.auug.org.au/listinfo/cook-users
>
>   



More information about the Cook-users mailing list