summaryrefslogtreecommitdiff
path: root/make.erl
blob: 4ebdf74df7e7718972127858282bf967158eb1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env escript
%% -*- erlang -*-

main(_) ->
    LagerPath = "../lager/ebin",
    case code:add_path(LagerPath) of
        true ->
            ok;
        {error, bad_directory} ->
            io:format("Could not add path ~p~n", [LagerPath]),
            halt(1)
    end,
    case make:all() of
        up_to_date ->
            ok;
        error ->
            halt(1)
    end.