選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

28 行
655 B

  1. -module(bug_5_rt).
  2. -compile(export_all).
  3. files() ->
  4. [{create, "ebin/a1.app", app(a1)},
  5. {create, "deps/d1/src/d1.app.src", app(d1)},
  6. {create, "rebar.config",
  7. <<"{deps, [{d1, \"1\", {hg, \"http://example.com\", \"tip\"}}]}.\n">>},
  8. {copy, "../rebar", "rebar"}].
  9. run(_Dir) ->
  10. {ok, _} = retest:sh("./rebar compile").
  11. %%
  12. %% Generate the contents of a simple .app file
  13. %%
  14. app(Name) ->
  15. App = {application, Name,
  16. [{description, atom_to_list(Name)},
  17. {vsn, "1"},
  18. {modules, []},
  19. {registered, []},
  20. {applications, [kernel, stdlib]}]},
  21. io_lib:format("~p.\n", [App]).