summaryrefslogtreecommitdiff
path: root/src/rebar_port_compiler.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar_port_compiler.erl')
-rw-r--r--src/rebar_port_compiler.erl23
1 files changed, 6 insertions, 17 deletions
diff --git a/src/rebar_port_compiler.erl b/src/rebar_port_compiler.erl
index a281b29..9f859e8 100644
--- a/src/rebar_port_compiler.erl
+++ b/src/rebar_port_compiler.erl
@@ -182,15 +182,9 @@ run_precompile_hook(Config, Env) ->
undefined ->
ok;
{Script, BypassFileName} ->
- ?CONSOLE(
- <<
- "WARNING: option deprecated~n"
- "Config option 'port_pre_script' has been deprecated "
- "in favor of ~n{pre_hooks, [{compile, \"script\"}]}."
- "~nskipfile support has also been removed. Add skipfile"
- " logic to the~nscript instead.~nFuture builds of rebar"
- " will remove the option 'port_pre_script'.~n~n"
- >>, []),
+ ?DEPRECATED(port_pre_script,
+ {pre_hooks, [{compile, "script"}]},
+ "in a future build of rebar"),
case filelib:is_regular(BypassFileName) of
false ->
?CONSOLE("Running ~s\n", [Script]),
@@ -207,14 +201,9 @@ run_cleanup_hook(Config) ->
undefined ->
ok;
Script ->
- ?CONSOLE(
- <<
- "WARNING: option deprecated~n"
- "Config option 'port_pre_script' has been deprecated "
- "in favor of ~n{post_hooks, [{clean, \"script\"}]}."
- "~nFuture builds of rebar will remove the option "
- "'port_pre_script'.~n~n"
- >>, []),
+ ?DEPRECATED(port_cleanup_script,
+ {post_hooks, [{clean, "script"}]},
+ "in a future build of rebar"),
?CONSOLE("Running ~s\n", [Script]),
{ok, _} = rebar_utils:sh(Script, []),
ok