diff options
author | Matthias Radestock <matthias@lshift.net> | 2009-01-13 19:00:50 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@lshift.net> | 2009-01-13 19:00:50 +0000 |
commit | b5f4ceb5b42314c3d71710006f57e34fb512abf2 (patch) | |
tree | d03c66f5afca0b0717dfb0b3f27b924d6986562c /generate_app | |
parent | 9a4191b704dc7f999faa7b0d598520aec41bcd42 (diff) | |
download | rabbitmq-server-b5f4ceb5b42314c3d71710006f57e34fb512abf2.tar.gz |
auto-generate rabbit.app module list
Diffstat (limited to 'generate_app')
-rw-r--r-- | generate_app | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generate_app b/generate_app new file mode 100644 index 00000000..1d75e83c --- /dev/null +++ b/generate_app @@ -0,0 +1,10 @@ +#!/usr/bin/env escript +%% -*- erlang -*- + +main([BeamDir]) -> + Modules = [list_to_atom(filename:basename(F, ".beam")) || + F <- filelib:wildcard("*.beam", BeamDir)], + {ok, {application, Application, Properties}} = io:read(""), + NewProperties = lists:keyreplace(modules, 1, Properties, + {modules, Modules}), + io:format("~p", [{application, Application, NewProperties}]). |