diff options
author | Matthew Sackman <matthew@lshift.net> | 2010-02-23 11:28:20 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@lshift.net> | 2010-02-23 11:28:20 +0000 |
commit | c25eb1503242a7295e694e57d190730016567d36 (patch) | |
tree | 51961829eac5e0fb5da871662db267fba48e28ba /generate_deps | |
parent | 676ba194422f61cc1e1ad43c681977b5c569110a (diff) | |
download | rabbitmq-server-c25eb1503242a7295e694e57d190730016567d36.tar.gz |
Accomodate weird American spellings
Diffstat (limited to 'generate_deps')
-rw-r--r-- | generate_deps | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generate_deps b/generate_deps index 916006d1..e16624d2 100644 --- a/generate_deps +++ b/generate_deps @@ -35,7 +35,8 @@ main([IncludeDir, ErlDir, EbinDir, TargetFile]) -> detect_deps(IncludeDir, EbinDir, Modules, Headers, Path) -> {ok, Forms} = epp:parse_file(Path, [IncludeDir], [{use_specs, true}]), lists:foldl( - fun ({attribute, _LineNumber, behaviour, Behaviour}, Deps) -> + fun ({attribute, _LineNumber, Attribute, Behaviour}, Deps) + when Attribute =:= behaviour orelse Attribute =:= behavior -> case sets:is_element(Behaviour, Modules) of true -> sets:add_element( [EbinDir, "/", atom_to_list(Behaviour), ".beam"], |