Subject: | Execution order |
in dist.ini:
[Run::BeforeBuild]
run = echo "line 1. BEGIN"
run_if_release = echo "line 2. RELEASE"
run_no_release = echo "line 3. NOT release"
run_if_trial = echo "line 4. TRIAL"
run_no_trial = echo "line 5. NOT TRIAL"
run = echo "line 6. END"
$ dzil build
[Run::BeforeBuild] executing: echo "line 1. BEGIN"
[Run::BeforeBuild] line 1. BEGIN
[Run::BeforeBuild] executing: echo "line 6. END"
[Run::BeforeBuild] line 6. END
[Run::BeforeBuild] executing: echo "line 5. NOT TRIAL"
[Run::BeforeBuild] line 5. NOT TRIAL
[Run::BeforeBuild] executing: echo "line 3. NOT release"
[Run::BeforeBuild] line 3. NOT release
You see that lines are executed not in linear order.
It would be nice to execute lines in order of appearance, or, at least, document execution order.