diff --git a/rebar.config b/rebar.config index a98b54c..716b42a 100644 --- a/rebar.config +++ b/rebar.config @@ -6,21 +6,6 @@ ]}. -{escript_incl_apps, [aebytecode, getopt]}. -{escript_main_app, aebytecode}. -{escript_name, aefateasm}. -{escript_emu_args, "%%!"}. -{provider_hooks, [{post, [{compile, escriptize}]}]}. - -{post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", - escriptize, - "cp \"$REBAR_BUILD_DIR/bin/aefateasm\" ./aefateasm"}, - {"win32", - escriptize, - "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aefateasm* " - "/njs /njh /nfl /ndl & exit /b 0"} % silence things - ]}. - {dialyzer, [ {warnings, [unknown]}, {plt_apps, all_deps}, @@ -35,3 +20,23 @@ {include_erts, false}, {extended_start_script, true}]}. + +{profiles, [{binary, [ + {deps, [ {getopt, "1.0.1"} + ]}, + {escript_incl_apps, [aebytecode, getopt]}, + {escript_main_app, aebytecode}, + {escript_name, aefateasm}, + {escript_emu_args, "%%!"}, + {provider_hooks, [{post, [{compile, escriptize}]}]}, + + {post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)", + escriptize, + "cp \"$REBAR_BUILD_DIR/bin/aefateasm\" ./aefateasm"}, + {"win32", + escriptize, + "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ aefateasm* " + "/njs /njh /nfl /ndl & exit /b 0"} % silence things + ]} + ]}]}. +