[erlang-questions] erl -make exit status
Tomas Abrahamsson
tomas.abrahamsson@REDACTED
Fri Aug 24 23:10:01 CEST 2007
On 8/23/07, David Terrell <dbt@REDACTED> wrote:
> % erlc -o ebin src/*.erl
> src/my_test.erl:5: can't find include lib "eunit/include/eunit.hrl"
> % echo $?
> 1
>
> % cat Emakefile
> {'src/*', [debug_info, {outdir, "ebin"}]}.
> % erl -make
> Recompile: src/my_test
> src/my_test.erl:5: can't find include lib "eunit/include/eunit.hrl"
> % echo %?
> 0
>
> This is making it hard to use emake in my continuous integration
> system... any suggestions? Is emake considered production ready?
[one more try, missed sending to the list last time :-)]
Here's one way to run erl -make and get a usable exit code:
erl -noinput +B -eval 'case make:all() of up_to_date -> halt(0); error
-> halt(1) end.'
/Tomas
More information about the erlang-questions
mailing list