forked from uwiger/setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrebar.config
More file actions
34 lines (33 loc) · 1.13 KB
/
rebar.config
File metadata and controls
34 lines (33 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%% -*- mode: erlang; erlang-indent-level: 4; indent-tabs-mode: nil -*-
{erl_opts, [debug_info]}.
{profiles,
[
{deps, [{edown, "0.8.1"}]},
{edoc_opts, [{doclet, edown_doclet},
{app_default, "http://www.erlang.org/doc/man"},
{top_level_readme,
{"./README.md",
"http://github.com/uwiger/setup"}}]}
]}.
{escript_main_app, setup}.
{escript_name, setup_gen}.
{escript_shebang, "#!/usr/bin/env escript\n"}.
{escript_comment, "%%\n"}.
{provider_hooks,
[
{post, [
{compile, escriptize}
]}
]}.
{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
escriptize,
"cp \"$REBAR_BUILD_DIR/bin/setup_gen\" ./setup_gen"},
{"win32",
escriptize,
"robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ setup_gen* "
"/njs /njh /nfl /ndl & exit /b 0"} % silence things
]}.
%% This line is to ensure that any erl_first_files setting from
%% 'above' isn't accidentally inherited, since there seems to be
%% a strange interaction between SNMP MIB compilation and escriptize.
{erl_first_files, []}.