[Cook] find the cookbook up the path?

Tom Satter tsatter at purecode.com
Wed Sep 24 09:07:26 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

We just wrote a script called docook that lookup up the file
hierarchy for a Howto.cook file and then used that.  If no
Howto.cook was found within some number of hierarchical levels
(like 6) then we reported an error.

tom


On 23 Sep 2003 10:56:19 +0200
Susanne Oberhauser <froh at SuSE.de> wrote:

> Hi ,
> 
> in the spirit of recursive make considered harmfull (which I share)
> I'd like to have just one top level cookbook and I'd like to have cook
> walk up the directory tree and use that if I'm somewhere below in the
> directory structure of my project and request cooking there.
> 
> 
>    / # find -ls top
>    top/Howto.cook
>    top/sub1/
>    top/sub1/file1
>    top/sub1/file2
>    top/sub1/file3
>    top/sub1/subsub1/
>    top/sub1/subsub1/file1
>    top/sub1/subsub1/file2
>    top/sub1/subsub2/
>    top/sub1/subsub2/file1
>    top/sub1/subsub2/file2
> 
>    / # cd top/sub/subsub;  work on files here;
>    top/sub/subsub # cook
>    cook: found cookbook in ../..
>    cook: changind working directory there und using that cookbook
>    ...
> 
> 
> Is there some way to get this without adding a Howto.cook file to each
> directory?
> 
> 
> Susanne
> 
> -- 
> Susanne Oberhauser     simply          SUSE LINUX AG
> +49-911-74053-574      change:         Deutschherrnstr. 15-19
> <froh at suse.de>       www.suse.de       90429 Nürnberg
> 
> _______________________________________________
> Cook-users mailing list
> Cook-users at auug.org.au
> http://www.auug.org.au/mailman/listinfo/cook-users


- -- 
tom satter - just plain old tom
(303) 543-7623 (home)  (303) 499-4100 (office)
tsatter at purecode.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/cNIuFrsrUbBc2AERAkaXAJ9u+M29nBoqJhAwCED9LYTrsM8stgCgjvZC
5sRPRd9EMIc5u7Q8Txa5CrA=
=NKWa
-----END PGP SIGNATURE-----



More information about the Cook-users mailing list