2009-01-14 03:00:50 +08:00
|
|
|
#!/usr/bin/env escript
|
|
|
|
|
%% -*- erlang -*-
|
|
|
|
|
|
|
|
|
|
main([BeamDir]) ->
|
|
|
|
|
Modules = [list_to_atom(filename:basename(F, ".beam")) ||
|
|
|
|
|
F <- filelib:wildcard("*.beam", BeamDir)],
|
2009-01-15 09:23:59 +08:00
|
|
|
{ok, {application, Application, Properties}} = io:read(''),
|
2009-01-14 03:00:50 +08:00
|
|
|
NewProperties = lists:keyreplace(modules, 1, Properties,
|
|
|
|
|
{modules, Modules}),
|
2009-01-14 03:46:18 +08:00
|
|
|
io:format("~p.", [{application, Application, NewProperties}]).
|