[erlang-questions] [erlang-bugs] erl -make returns ok status after compilation error

Robert Raschke rtrlists@REDACTED
Fri Oct 16 15:38:41 CEST 2009


On Fri, Oct 16, 2009 at 2:34 PM, Dennis Novikov <dennis.novikov@REDACTED>wrote:

> I had to use wrapper like this:
>
> -module(mk).
>
> -export([all/0]).
>
> all() ->
>     case make:all() of
>         up_to_date ->
>             erlang:halt(0);
>         _ ->
>             erlang:halt(1)
> end.
>
> erl -noinput -noshell -s mk all
>
>
You can also do this in one command without the need for a module:

erl -noinput -eval "case make:all() of up_to_date -> halt(0); _ -> halt(1)
end."

Robby


More information about the erlang-questions mailing list