summaryrefslogtreecommitdiff
path: root/src/rebar_pre_script.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_pre_script.erl')
-rw-r--r--src/rebar_pre_script.erl18
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"
+ >>, []).