Преглед изворни кода

asn1_compiler: only move hrl file if it exists

pull/3/head
Ali Yakout пре 13 година
committed by Tuncer Ayaz
родитељ
комит
e0d9ca0773
1 измењених фајлова са 6 додато и 2 уклоњено
  1. +6
    -2
      src/rebar_asn1_compiler.erl

+ 6
- 2
src/rebar_asn1_compiler.erl Прегледај датотеку

@ -58,8 +58,12 @@ compile_asn1(Source, Target, Config) ->
ok ->
Asn1 = filename:basename(Source, ".asn1"),
HrlFile = filename:join("src", Asn1 ++ ".hrl"),
ok = rebar_file_utils:mv(HrlFile, "include"),
ok;
case filelib:is_regular(HrlFile) of
true ->
ok = rebar_file_utils:mv(HrlFile, "include");
false ->
ok
end;
{error, _Reason} ->
?FAIL
end.

Loading…
Откажи
Сачувај