[Cook] cook not noticing changes.

Robin Lee Powell rlpowell at digitalkingdom.org
Tue Jan 7 06:20:30 EST 2003


On Mon, Jan 06, 2003 at 12:44:11PM -0600, Jerry Pendergraft wrote:
> On Mon, 6 Jan 2003, Robin Lee Powell wrote:
> The other thing is that when you put "file system" modifying commands in a
> recipe body, such as rm,cp etc, you should either include set clearstat;
> or make the commands execute as a single shell command such as below:
>
> > 
> > bin/moz_base/%.class: [resolve src/moz_base/%.class]
> > {
> >     echo %.class;
> >     rm -f bin/moz_base/%.class;
> >     cp -p [resolve src/moz_base/%.class] bin/moz_base/%.class;
> >     chmod -f u+w bin/moz_base/%.class;
> > }
> 
> bin/moz_base/%.class: [resolve src/moz_base/%.class]
> {
>     function print "copying:" %.class;
> 
>     cp -p [resolve src/moz_base/%.class] [target] && chmod -f u+w [target];
> }

I made that change, and when I integrated again got:

aegis: appending log to /home/moz/moz/branch.1/branch.0/delta32551.031/aegis.log
aegis: project "moz.1.0": change 57: integration build started
aegis: user "moz", group "users"
aegis: cook -book Howto.cook search_path=/home/moz/moz/branch.1/branch.0/delta32551.031:/home/moz/moz/branch.1/baseline:/home/moz/
        moz/baseline project=moz.1.0 change=57 version=1.0.D031 -star -no-log -action -notouch
cook: +-+-+*#
cook: adjusting "bin/moz_base/Location.class" forward 11 hours 37 minutes
cook: echo Container.class
Container.class
cook: cp -p src/moz_base/Container.class bin/moz_base/Container.class
cook: chmod -f u+w bin/moz_base/Container.class
cook: adjusting "bin/moz_base/Container.class" back 12 hours 45 minutes
cook: adjusting "bin/moz_base/Player.class" forward 11 hours 37 minutes
cook: adjusting "docs/design.info" forward 11 hours 37 minutes
cook: adjusting "docs/design.html" forward 11 hours 37 minutes
cook: adjusting "docs/design.pdf" forward 11 hours 37 minutes
cook: adjusting "bin/moz_base/Thing.class" forward 11 hours 37 minutes
cook: echo Located.class
Located.class
cook: cp -p src/moz_base/Located.class bin/moz_base/Located.class
cook: chmod -f u+w bin/moz_base/Located.class
cook: adjusting "bin/moz_base/Located.class" back 12 hours 45 minutes
cook: @
aegis: project "moz.1.0": change 57: integration build complete


This time, none of the Player, Thing, and Location classes got updated.

New recipe:

bin/moz_base/%.class: [resolve src/moz_base/%.class]
    set clearstat
{
    echo %.class;
    cp -p [resolve src/moz_base/%.class] bin/moz_base/%.class;
    chmod -f u+w bin/moz_base/%.class;
}

Note further that despite having 'set unlink;' at the top of the file, the
targets do not appear to actually be being unlinked, even when the recipe is
activated.

-Robin

-- 
http://www.digitalkingdom.org/~rlpowell/    ***    I'm a *male* Robin.
.i le pamoi velru'e zo'u jmaji le plibu taxfu
.i le remoi velru'e zo'u mo .i le cimoi velru'e zo'u ba'e prali .uisai
http://www.lojban.org/   ***   to sa'a cu'u lei pibyta'u cridrnoma toi



More information about the Cook-users mailing list