summaryrefslogtreecommitdiff
path: root/src/rebar_post_script.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_post_script.erl')
-rw-r--r--src/rebar_post_script.erl18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/rebar_post_script.erl b/src/rebar_post_script.erl
index c7f2d01..39185a9 100644
--- a/src/rebar_post_script.erl
+++ b/src/rebar_post_script.erl
@@ -51,6 +51,24 @@ execute_post_script(Config, Key) ->
undefined ->
ok;
Script ->
+ deprecated(Key),
{ok, _} = rebar_utils:sh(Script, []),
ok
end.
+
+deprecated(compile_post_script) ->
+ ?CONSOLE(
+ <<
+ "WARNING: option deprecated~n"
+ "Config option 'compile_post_script' has been deprecated in favor"
+ " of ~noption {post_hooks, [{compile, \"script\"}]}.~nFuture builds "
+ "of rebar will remove the option 'compile_post_script'.~n~n"
+ >>, []);
+deprecated(clean_post_script) ->
+ ?CONSOLE(
+ <<
+ "WARNING: option deprecated~n"
+ "Config option 'clean_post_script' has been deprecated in favor"
+ " of ~noption {post_hooks, [{clean, \"script\"}]}.~nFuture builds "
+ "of rebar will remove the option 'clean_post_script'.~n~n"
+ >>, []).