Browse Source

hide verbose functions

Namdak Tonpa 6 years ago
parent
commit
0db1405f3a
5 changed files with 6 additions and 4 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 2 2
      mad.cmd
  4. 2 1
      src/compile/mad_erl.erl
  5. 1 0
      src/mad_git.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"da6e25").
+-define(VERSION,"95b93f").

BIN
mad


+ 2 - 2
mad.cmd

@@ -1,4 +1,4 @@
 @echo off
 setlocal
-set rebarscript=%~f0
-escript.exe "%rebarscript:.cmd=%" %*
+set madscript=%~f0
+escript.exe "%madscript:.cmd=%" %*

+ 2 - 1
src/compile/mad_erl.erl

@@ -15,8 +15,9 @@ compile(File,Inc,Bin,Opt,Deps) ->
     Compiled = mad_compile:is_compiled(BeamFile, File),
     if  Compiled =:= false ->
         Opts1 = ?COMPILE_OPTS(Inc, Bin, Opt, Deps),
+%  VERBOSE
+%        mad:info("Compiling ~s~n", [File -- mad_utils:cwd()]),
         NewCompile = compile:file(File, filter(Opts1)),
-        mad:info("Compiled ~s~n", [File -- mad_utils:cwd()]),
         ret(NewCompile);
     true -> false end.
 

+ 1 - 0
src/mad_git.erl

@@ -70,6 +70,7 @@ fetch_dep(Cwd, Config, ConfigFile, Name, Cmd, Uri, Co, Cache, Deep) ->
         {_,Rev} -> git_clone(Uri,Fast,TrunkPath,Rev);
         Master  -> git_clone(Uri,Fast,TrunkPath,Master) end,
 
+% VERBOSE
 %    mad:info("Fetch: ~s~n",[R]),
 
     FetchStatus = case filelib:is_dir(TrunkPath) of