Browse Source

make observer works under mad repl

Maxim Sokhatsky 10 years ago
parent
commit
c2c8ba15e5
3 changed files with 4 additions and 3 deletions
  1. BIN
      mad
  2. 1 1
      src/mad_release.erl
  3. 3 2
      src/mad_repl.erl

BIN
mad


+ 1 - 1
src/mad_release.erl

@@ -13,7 +13,7 @@ release(Name,Apps) ->
 main([]) -> main(["sample"]);
 main(Params) ->
     [N|_] = Params,
-    Apps = [ filename:basename(F) || F <- filelib:wildcard("{apps,deps}/*"),  filelib:is_dir(F)],
+    Apps = mad_plan:orderapps(), %[ filename:basename(F) || F <- filelib:wildcard("{apps,deps}/*"),  filelib:is_dir(F)],
     release(N,Apps),
     {_,Status,X} = sh:run("relx",[],binary,".",[]),
     case Status == 0 of

+ 3 - 2
src/mad_repl.erl

@@ -2,8 +2,9 @@
 -copyright('Maxim Sokhatsky').
 -compile(export_all).
 
-disabled() -> [wx,webtool,ssl,runtime_tools,public_key,observer,inets,asn1,et,eunit,hipe].
-system() -> [compiler,syntax_tools,sasl,tools,mnesia,reltool,xmerl,crypto,kernel,stdlib].
+disabled() -> []. %wx,webtool,ssl,runtime_tools,public_key,observer,inets,asn1,et,eunit,hipe].
+system() -> [compiler,syntax_tools,sasl,tools,mnesia,reltool,xmerl,crypto,kernel,stdlib,
+             wx,webtool,ssl,runtime_tools,public_key,observer,inets,asn1,et,eunit,hipe].
 
 local_app() -> 
     case filename:basename(filelib:wildcard("ebin/*.app"),".app") of