mirror of
https://github.com/correl/rebar.git
synced 2024-11-30 11:09:56 +00:00
e76770511a
This change makes it possible to assign pre/post scripts to all rebar commands. This allows users fine grained control over when scripts and/or shell commands should be executed, where such extensions are absolutely needed. Several examples have been added to the rebar.config.sample file.
7 lines
274 B
Erlang
7 lines
274 B
Erlang
%% pre-scripts
|
|
{pre_hooks, [{clean, "echo preclean >> preclean.out"},
|
|
{compile, "echo precompile >> precompile.out"}]}.
|
|
|
|
%% post-scripts
|
|
{post_hooks, [{clean, "echo postclean >> postclean.out"},
|
|
{compile, "echo postcompile >> postcompile.out"}]}.
|