rebar_erl_vsn

defines for erlang versions

Build

$ rebar3 compile

Use

Add the plugin to your rebar config:

{plugins, [rebar_erl_vsn]}.
{provider_hooks, [{pre, [{compile, erl_vsn}]}]}.

Then just call your plugin directly in an existing application:

$ rebar3 compile
===> Fetching rebar_erl_vsn
===> Compiling rebar_erl_vsn
<Plugin Output>

Defines

Each major/minor pair get a define like 17.5 or 18.0 in addition the following 'events' are defined too (in combination with the corresponding version):