Browse Source

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.
pull/3/head
Dave Smith 14 years ago
parent
commit
7ddd4bdaad
1 changed files with 1 additions and 13 deletions
  1. +1
    -13
      src/rebar_edoc.erl

+ 1
- 13
src/rebar_edoc.erl View File

@ -36,7 +36,7 @@
%% ------------------------------------------------------------------- %% -------------------------------------------------------------------
-module(rebar_edoc). -module(rebar_edoc).
-export([doc/2, clean/2]).
-export([doc/2]).
-include("rebar.hrl"). -include("rebar.hrl").
@ -52,15 +52,3 @@ doc(Config, File) ->
EDocOpts = rebar_config:get(Config, edoc_opts, []), EDocOpts = rebar_config:get(Config, edoc_opts, []),
ok = edoc:application(AppName, ".", EDocOpts), ok = edoc:application(AppName, ".", EDocOpts),
ok. 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).

Loading…
Cancel
Save