diff options
author | Jerry Kuch <jerryk@vmware.com> | 2010-11-11 16:10:13 +0000 |
---|---|---|
committer | Jerry Kuch <jerryk@vmware.com> | 2010-11-11 16:10:13 +0000 |
commit | a2945751a9b0369ec19db1c02acb46aa1fa655a6 (patch) | |
tree | 93b75553d9e5f313bce06b89d79191c6daec41d9 /generate_deps | |
parent | cd62807f46e69ee533422e29e9b2925a4cd2c9ff (diff) | |
download | rabbitmq-server-a2945751a9b0369ec19db1c02acb46aa1fa655a6.tar.gz |
Makefile and generate_deps now more robust.bug23481
Diffstat (limited to 'generate_deps')
-rw-r--r-- | generate_deps | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generate_deps b/generate_deps index 60916838..ddfca816 100644 --- a/generate_deps +++ b/generate_deps @@ -2,9 +2,11 @@ %% -*- erlang -*- -mode(compile). -%% We expect the list of Erlang source and header files to arrive on stdin +%% We expect the list of Erlang source and header files to arrive on +%% stdin, with the entries colon-separated. main([TargetFile, EbinDir]) -> - ErlsAndHrls = string:tokens(io:get_line(""), ":\n"), + ErlsAndHrls = [ string:strip(S,left) || + S <- string:tokens(io:get_line(""), ":\n")], ErlFiles = [F || F <- ErlsAndHrls, lists:suffix(".erl", F)], Modules = sets:from_list( [list_to_atom(filename:basename(FileName, ".erl")) || |