diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-03-27 11:38:24 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-03-27 11:38:24 +0100 |
commit | 0fffec2394f2d1962b44eaea4786f9ad69dea901 (patch) | |
tree | c7d39d7871d958ff6db2602c31754df887ef7ec2 /make.erl | |
parent | db1c5cf0eeba9b47a3f89bebc1abd9985ee9fef7 (diff) |
Add make.erl.
Diffstat (limited to 'make.erl')
-rwxr-xr-x | make.erl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/make.erl b/make.erl new file mode 100755 index 0000000..4ebdf74 --- /dev/null +++ b/make.erl @@ -0,0 +1,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. |