diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-06-15 14:37:00 -0600 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-06-15 14:37:00 -0600 |
commit | 6f40b80ee39075984b4a2216e70220e0f6b587cd (patch) | |
tree | 70d0c96a90bc4570c43bf156fe4ce8480802c1e3 /src | |
parent | 4a12b13939954ec16e21fcdb1b911f17d0ff5bab (diff) |
Fixing http://hg.basho.com/rebar/issue/6; rebar_edoc was a little enthusiastic about deleting the doc dir
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_edoc.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_edoc.erl b/src/rebar_edoc.erl index ed7c226..cc8e69f 100644 --- a/src/rebar_edoc.erl +++ b/src/rebar_edoc.erl @@ -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). |