Selaa lähdekoodia

Fixing http://hg.basho.com/rebar/issue/6; rebar_edoc was a little enthusiastic about deleting the doc dir

pull/3/head
Dave Smith 15 vuotta sitten
vanhempi
commit
6f40b80ee3
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. +5
    -1
      src/rebar_edoc.erl

+ 5
- 1
src/rebar_edoc.erl Näytä tiedosto

@ -59,4 +59,8 @@ doc(Config, File) ->
clean(Config, _File) ->
EDocOpts = rebar_config:get(Config, edoc_opts, []),
DocDir = proplists:get_value(dir, EDocOpts, "doc"),
rebar_file_utils:rm_rf(DocDir).
%% 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).

Ladataan…
Peruuta
Tallenna