diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-02-23 19:45:44 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-03-12 16:48:16 +0100 |
commit | 4ceb9e07a3408469c9a9f23203358868823779e0 (patch) | |
tree | d1b5698d27eb09bb39c4d266aecd5d06094d0aea /src/rebar_pre_script.erl | |
parent | bc98a4820ed17ebcfcf98440f6d2cb63826bd1fb (diff) |
Deprecate old hooks
Diffstat (limited to 'src/rebar_pre_script.erl')
-rw-r--r-- | src/rebar_pre_script.erl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/rebar_pre_script.erl b/src/rebar_pre_script.erl index 9097807..b23f469 100644 --- a/src/rebar_pre_script.erl +++ b/src/rebar_pre_script.erl @@ -51,6 +51,24 @@ execute_pre_script(Config, Key) -> undefined -> ok; Script -> + deprecated(Key), {ok, _} = rebar_utils:sh(Script, []), ok end. + +deprecated(compile_pre_script) -> + ?CONSOLE( + << + "WARNING: option deprecated~n" + "Config option 'compile_pre_script' has been deprecated in favor" + " of ~n{pre_hooks, [{compile, \"script\"}]}.~nFuture builds of" + " rebar will remove the option 'compile_pre_script'.~n~n" + >>, []); +deprecated(clean_pre_script) -> + ?CONSOLE( + << + "WARNING: option deprecated~n" + "Config option 'clean_pre_script' has been deprecated in favor" + " of ~n{pre_hooks, [{clean, \"script\"}]}.~nFuture builds of" + " rebar will remove the option 'clean_pre_script'.~n~n" + >>, []). |