mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Clean up specs
This commit is contained in:
parent
1b9f2a5981
commit
aec71f93cb
3 changed files with 6 additions and 6 deletions
|
@ -36,13 +36,13 @@
|
|||
%% Public API
|
||||
%% ===================================================================
|
||||
|
||||
-spec compile(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
|
||||
-spec compile(rebar_config:config(), file:filename()) -> 'ok'.
|
||||
compile(Config, _AppFile) ->
|
||||
rebar_base_compiler:run(Config, filelib:wildcard("asn1/*.asn1"),
|
||||
"asn1", ".asn1", "src", ".erl",
|
||||
fun compile_asn1/3).
|
||||
|
||||
-spec clean(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
|
||||
-spec clean(rebar_config:config(), file:filename()) -> 'ok'.
|
||||
clean(_Config, _AppFile) ->
|
||||
GeneratedFiles = asn_generated_files("asn1", "src", "include"),
|
||||
ok = rebar_file_utils:delete_each(GeneratedFiles),
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
%% 'old_inets'}]}.
|
||||
%%
|
||||
|
||||
-spec compile(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
|
||||
-spec compile(rebar_config:config(), file:filename()) -> 'ok'.
|
||||
compile(Config, _AppFile) ->
|
||||
rebar_base_compiler:run(Config,
|
||||
check_files(rebar_config:get_local(
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
%% @doc Remove files and directories.
|
||||
%% Target is a single filename, directoryname or wildcard expression.
|
||||
-spec rm_rf(Target::string()) -> ok.
|
||||
-spec rm_rf(string()) -> 'ok'.
|
||||
rm_rf(Target) ->
|
||||
case os:type() of
|
||||
{unix, _} ->
|
||||
|
@ -56,7 +56,7 @@ rm_rf(Target) ->
|
|||
ok
|
||||
end.
|
||||
|
||||
-spec cp_r(Sources::list(string()), Dest::file:filename()) -> ok.
|
||||
-spec cp_r(list(string()), file:filename()) -> 'ok'.
|
||||
cp_r([], _Dest) ->
|
||||
ok;
|
||||
cp_r(Sources, Dest) ->
|
||||
|
@ -73,7 +73,7 @@ cp_r(Sources, Dest) ->
|
|||
ok
|
||||
end.
|
||||
|
||||
-spec mv(Source::string(), Dest::file:filename()) -> ok.
|
||||
-spec mv(string(), file:filename()) -> 'ok'.
|
||||
mv(Source, Dest) ->
|
||||
case os:type() of
|
||||
{unix, _} ->
|
||||
|
|
Loading…
Reference in a new issue