Sfoglia il codice sorgente

asn1_compiler: only move hrl file if it exists

pull/3/head
Ali Yakout 13 anni fa
committed by Tuncer Ayaz
parent
commit
e0d9ca0773
1 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. +6
    -2
      src/rebar_asn1_compiler.erl

+ 6
- 2
src/rebar_asn1_compiler.erl Vedi File

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

Caricamento…
Annulla
Salva