[Omake] Another possible bug

Brian Downing bdowning at lavos.net
Sun Dec 27 00:04:53 PST 2009


Again, 0.9.8.5:

DefineCommandVars()
OMakeFlags(--verbose)

.SUBDIRS: .
    fn() =
        echo fn called
    .DEFAULT:
        "rm" -rf foo
        mkdir foo
        section
            cd foo
            fn()

fn() gets called twice here, once apparently before the rule execution
starts:

*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.01 sec)
fn called
- build . <.DEFAULT>
+ <compute 1 value dependencies>
- build . <.DEFAULT>
+ rm -rf foo
- build . <.DEFAULT>
+ Shell.mkdir(foo)
- build . <.DEFAULT>
+ shell(("cd foo"))
global.fn()
fn called
- exit . <.DEFAULT>, 0.07 sec, code 0
*** omake: done (0.10 sec, 0/0 scans, 1/1 rules, 1/31 digests)

Giving it an argument makes it work.

-bcd


More information about the Omake mailing list