Procházet zdrojové kódy

asn1_compiler: only move hrl file if it exists

pull/3/head
Ali Yakout před 13 roky
odevzdal Tuncer Ayaz
rodič
revize
e0d9ca0773
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. +6
    -2
      src/rebar_asn1_compiler.erl

+ 6
- 2
src/rebar_asn1_compiler.erl Zobrazit soubor

@ -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.

Načítá se…
Zrušit
Uložit