diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-10-25 06:31:07 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-10-25 06:31:07 -0600 |
commit | 7ddd4bdaadcef81410beab0f611c750b87a0445d (patch) | |
tree | 82c9f680daf90732fd23222afa8325818d659f22 | |
parent | 1690139be9532851f8edd3c56aff0e6529e999a1 (diff) |
Fixed 819; removed the edoc clean function entirely in favor of requiring user to explicitly specify what files should be deleted.
If there is no convention or way to programatically figure out what files to process, don't guess.
-rw-r--r-- | src/rebar_edoc.erl | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/rebar_edoc.erl b/src/rebar_edoc.erl index cc8e69f..704d0d6 100644 --- a/src/rebar_edoc.erl +++ b/src/rebar_edoc.erl @@ -36,7 +36,7 @@ %% ------------------------------------------------------------------- -module(rebar_edoc). --export([doc/2, clean/2]). +-export([doc/2]). -include("rebar.hrl"). @@ -52,15 +52,3 @@ doc(Config, File) -> EDocOpts = rebar_config:get(Config, edoc_opts, []), ok = edoc:application(AppName, ".", EDocOpts), ok. - -%% @doc Remove the generated Erlang program documentation. -%% @spec clean(#config{}, string()) -> ok --spec(clean(Config::#config{}, File::string()) -> ok). -clean(Config, _File) -> - EDocOpts = rebar_config:get(Config, edoc_opts, []), - DocDir = proplists:get_value(dir, EDocOpts, "doc"), - - %% Delete all files except overview.edoc - Files = [F || F <- rebar_utils:find_files(DocDir, ".*"), - filename:basename(F) /= "overview.edoc"], - rebar_file_utils:delete_each(Files). |