summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2012-06-06 11:56:49 -0600
committerDave Smith <dizzyd@dizzyd.com>2012-06-06 11:56:49 -0600
commit2f0e545ce0c3c6021953dc2d1a0dc2646ee119ee (patch)
tree59c6d21c19e3e54ec9c2e11d174eab0e7bb8bb7e
parent81112cbd076bd9f552b699e81075eb6cc75c92fc (diff)
Prefer edoc-info as determining file; overview-summary.html may not
always be generated
-rw-r--r--src/rebar_edoc.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rebar_edoc.erl b/src/rebar_edoc.erl
index faf9242..a8f91e9 100644
--- a/src/rebar_edoc.erl
+++ b/src/rebar_edoc.erl
@@ -56,14 +56,14 @@ doc(Config, File) ->
{ok, AppName, _AppData} = rebar_app_utils:load_app_file(File),
%% Determine the age of the summary file
- SummaryFilename = filename:join(proplists:get_value(dir, EDocOpts, "doc"),
- "overview-summary.html"),
- SummaryLastMod = filelib:last_modified(SummaryFilename),
+ EDocInfoName = filename:join(proplists:get_value(dir, EDocOpts, "doc"),
+ "edoc-info"),
+ EDocInfoLastMod = filelib:last_modified(EDocInfoName),
%% For each source directory, look for a more recent file than
%% SumaryLastMod; in that case, we go ahead and do a full regen
NeedsRegen = newer_file_exists(proplists:get_value(source_path, EDocOpts, ["src"]),
- SummaryLastMod),
+ EDocInfoLastMod),
case NeedsRegen of
true ->
@@ -98,7 +98,7 @@ newer_file_exists(Paths, LastMod) ->
FLast = filelib:last_modified(Filename),
case FLast > LastMod of
true ->
- ?DEBUG("~p is more recent than overview-summary.html: ~120p > ~120p\n",
+ ?DEBUG("~p is more recent than edoc-info: ~120p > ~120p\n",
[Filename, FLast, LastMod]),
throw(newer_file_exists);
false ->