[Cook] cook+aegis question (builtin resolve)
Jerry Pendergraft
jerry at endocardial.com
Fri Jan 31 01:50:39 EST 2003
The resolve function uses search_list to control where it looks.
Unless you have specifically changed it, search_list includes the change
directory all the way up to the trunk baseline.
If the file does not exist, resolve returns the file (or path/file) as if
it were in the change.
You can do what you want with one minor change, try:
if [not [exists [resolve foo]]] then touch foo;
--
Jerry Pendergraft jerry.pendergraft at endocardial.com
Endocardial Solutions voice: 651-523-6935
1350 Energy Lane, Suite 110 fax: 651-644-7897
St Paul, MN 55108-5254
On Thu, 30 Jan 2003, Aryeh M. Friedman wrote:
>
> Does the builtin resolve function in cook only match against the baseline
> and/or stuff that should be in the baseline after intergration (i.e. only
> see baseline files and/or aenf'ed stuff). Also what is the return value
> if the file is not resolvable?
>
> Specifically I want to do something like:
>
> if [not [resolve foo]] then touch foo;
>
> --Aryeh
> _______________________________________________
> Cook-users mailing list
> Cook-users at auug.org.au
> http://www.auug.org.au/mailman/listinfo/cook-users
>
More information about the Cook-users
mailing list