Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed copystatic option since build/1 always copied static files

  • Loading branch information...
commit bacbb00ca82a0de74379d20b795fda2bd2c0f916 1 parent ffc5b75
@dreverri dreverri authored
Showing with 6 additions and 15 deletions.
  1. +0 −4 src/erldocs.erl
  2. +6 −11 src/erldocs_core.erl
View
4 src/erldocs.erl
@@ -18,10 +18,6 @@ parse_options(Args) ->
-spec parse_option(string()) -> [{atom(), _}].
parse_option("--sys-conf=" ++ Path) ->
[{sys_conf, Path}];
-parse_option("--gen-docsrc") ->
- [{gen_docsrc, true}];
-parse_option("copystatic") ->
- [{copystatic, true}];
parse_option("--name=" ++ Name) ->
[{name, Name}];
parse_option(Unknown) ->
View
17 src/erldocs_core.erl
@@ -18,17 +18,12 @@ copy_static_files(Conf) ->
%% appropriate function.
-spec dispatch(list()) -> ok.
dispatch(Conf) ->
- case lists:keyfind(copystatic, 1, Conf) of
- {_, true} ->
- copy_static_files(Conf);
- false ->
- Start = erlang:now(),
- build(Conf),
- Diff = timer:now_diff(erlang:now(), Start),
- Mins = trunc(Diff * 1.667e-8),
- log("Woot, finished in ~p Minutes ~p Seconds~n",
- [Mins, trunc((Diff * 1.0e-6) - (Mins * 60))])
- end.
+ Start = erlang:now(),
+ build(Conf),
+ Diff = timer:now_diff(erlang:now(), Start),
+ Mins = trunc(Diff * 1.667e-8),
+ log("Woot, finished in ~p Minutes ~p Seconds~n",
+ [Mins, trunc((Diff * 1.0e-6) - (Mins * 60))]).
%% @doc Build everything
Please sign in to comment.
Something went wrong with that request. Please try again.