diff options
author | Hans Bolinder <[email protected]> | 2011-06-20 14:11:32 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-06-20 14:11:32 +0200 |
commit | 9b9dc0d0c6aa9dc002c6581eb76b891e707a492a (patch) | |
tree | a1b86c9dda70fe0f96bc6d21c74b7561d75fad53 /lib/erl_docgen/priv/bin/xref_mod_app.escript | |
parent | d798caa64f4bb7509e89e6b8161c7eb196bc7270 (diff) | |
parent | 4b8d1bbef490ad8a6b3e3d64c0fdcb8a9f57d209 (diff) | |
download | otp-9b9dc0d0c6aa9dc002c6581eb76b891e707a492a.tar.gz otp-9b9dc0d0c6aa9dc002c6581eb76b891e707a492a.tar.bz2 otp-9b9dc0d0c6aa9dc002c6581eb76b891e707a492a.zip |
Merge branch 'hb/erl_docgen/bugfix/OTP-9360' into dev
* hb/erl_docgen/bugfix/OTP-9360:
Bugfixes
Diffstat (limited to 'lib/erl_docgen/priv/bin/xref_mod_app.escript')
-rwxr-xr-x | lib/erl_docgen/priv/bin/xref_mod_app.escript | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/bin/xref_mod_app.escript b/lib/erl_docgen/priv/bin/xref_mod_app.escript index 13671ef2f8..c2bd62f9e0 100755 --- a/lib/erl_docgen/priv/bin/xref_mod_app.escript +++ b/lib/erl_docgen/priv/bin/xref_mod_app.escript @@ -73,7 +73,12 @@ usage() -> modapp(TopDir) -> AppDirs = filelib:wildcard(filename:join([TopDir,"lib","*"])), AM = [appmods(D) || D <- AppDirs], - lists:keysort(1, [{M,A} || {A,Ms} <- AM, M <- Ms]). + ERTS = [preloaded(TopDir) || lists:keyfind("erts", 1, AM) =:= false], + lists:keysort(1, [{M,A} || {A,Ms} <- ERTS++AM, M <- Ms]). + +preloaded(TopDir) -> + {"preloaded",Mods} = appmods(filename:join([TopDir,"erts","preloaded"])), + {"erts",Mods}. %% It's OK if too much data is generated as long as all applications %% and all modules are mentioned. |