rebar.config.script 559 B

123456789101112131415161718
  1. %% -*- erlang -*-
  2. %%
  3. %% If the environment variable X_COMP is set, it is an indication that self is being compiled
  4. %% as a dependency under exodev. Since exodev lists all dependency in its root rebar.config
  5. %% file in order to have a flat view of the dependency tree, we should nil out our local
  6. %% deps list provided by our local rebar.config
  7. %%
  8. case os:getenv("EXODEV_COMP") of
  9. false ->
  10. CONFIG;
  11. _ ->
  12. case lists:keytake(deps, 1, CONFIG) of
  13. { value, _, Remainder } -> Remainder;
  14. _ -> CONFIG
  15. end
  16. end.