diff options
Diffstat (limited to 'src/rebar_pre_script.erl')
| -rw-r--r-- | src/rebar_pre_script.erl | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/rebar_pre_script.erl b/src/rebar_pre_script.erl index b23f469..d79d662 100644 --- a/src/rebar_pre_script.erl +++ b/src/rebar_pre_script.erl @@ -56,19 +56,9 @@ execute_pre_script(Config, Key) -> 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" - >>, []). +deprecated(Key=compile_pre_script) -> + ?DEPRECATED(Key, {pre_hooks, [{compile, "script"}]}, + "in a future build of rebar"); +deprecated(Key=clean_pre_script) -> + ?DEPRECATED(Key, {pre_hooks, [{clean, "script"}]}, + "in a future build of rebar"). |
