[Cook] find the cookbook up the path?
Susanne Oberhauser
froh at SuSE.de
Tue Sep 23 18:56:19 EST 2003
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
More information about the Cook-users
mailing list