2012-10-14 13:08:15 -04:00
|
|
|
#!/usr/bin/env escript
|
|
|
|
-export([main/1]).
|
|
|
|
|
|
|
|
main([FileName| LibDirs=[_|_]]) ->
|
|
|
|
code:add_pathsa(LibDirs),
|
|
|
|
main([FileName]);
|
|
|
|
|
|
|
|
main([FileName]) ->
|
|
|
|
compile:file(FileName, [warn_obsolete_guard,
|
|
|
|
warn_unused_import,
|
|
|
|
warn_shadow_vars,
|
|
|
|
warn_export_vars,
|
|
|
|
strong_validation,
|
|
|
|
report,
|
2012-10-17 16:05:46 -04:00
|
|
|
{i, filename:dirname(FileName) ++ "/../include"},
|
2012-10-17 16:09:26 -04:00
|
|
|
{i, filename:dirname(FileName) ++ "/../deps"},
|
2012-10-17 16:05:46 -04:00
|
|
|
{i, filename:dirname(FileName) ++ "/../../../deps"}
|
2012-10-14 13:08:15 -04:00
|
|
|
]).
|