Permalink
Browse files

Added rebar_commands property (defaults to ["get-deps","compile"])

  • Loading branch information...
1 parent 664f2de commit 445a2cfe37bc893fdb1635228461bba6b4b275a0 @yrashk yrashk committed Feb 1, 2011
Showing with 4 additions and 2 deletions.
  1. +2 −0 include/agner_spec.hrl
  2. +2 −2 src/agner_main.erl
View
@@ -18,6 +18,7 @@
-type agner_spec_property_authors() :: {authors, list(string())}.
-type agner_spec_property_homepage() :: {homepage, string()}.
-type agner_spec_property_rebar_compatible() :: {rebar_compatible, boolean()}.
+-type agner_spec_property_rebar_commands() :: {rebar_commands, list(string())}.
-type agner_spec_property_build_command() :: {build_command, string()}.
-type agner_spec_property_install_command() :: {install_command, string()}.
-type agner_spec_property_bin_files() :: {bin_files, list(string())}.
@@ -36,6 +37,7 @@
agner_spec_property_authors() |
agner_spec_property_homepage() |
agner_spec_property_rebar_compatible() |
+ agner_spec_property_rebar_commands() |
agner_spec_property_build_command() |
agner_spec_property_install_command() |
agner_spec_property_bin_files() |
View
@@ -365,8 +365,8 @@ handle_command(fetch, Opts) ->
io:format("Building...~n"),
{ok, Cwd} = file:get_cwd(),
file:set_cwd(Directory),
- rebar:main(["get-deps"]),
- rebar:main(["compile"]),
+ RebarCommands = proplists:get_value(rebar_commands, Spec,["get-deps","compile"]),
+ rebar:main(RebarCommands),
file:set_cwd(Cwd);
_ ->
ignore

0 comments on commit 445a2cf

Please sign in to comment.