Explorar el Código

asn1_compiler: only move hrl file if it exists

pull/3/head
Ali Yakout hace 13 años
cometido por Tuncer Ayaz
padre
commit
e0d9ca0773
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. +6
    -2
      src/rebar_asn1_compiler.erl

+ 6
- 2
src/rebar_asn1_compiler.erl Ver fichero

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

Cargando…
Cancelar
Guardar