Procházet zdrojové kódy

ft: 优化检测对应目录下面存在rebar.config文件才会去编译对应目录

master
SisMaker před 3 roky
rodič
revize
d482ef9789
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. binární
      eNpc
  2. +2
    -1
      src/eNpc.erl

binární
eNpc Zobrazit soubor


+ 2
- 1
src/eNpc.erl Zobrazit soubor

@ -10,7 +10,8 @@ main(Args) ->
io:format("eNpc begin compile pwd:~15.p ~n", [Dir]),
FunCom =
fun(File) ->
case filelib:is_dir(File) == true andalso lists:nth(1, File) =/= 46 andalso filename:basename(File) =/= "include" of
RebarCfgFile = File ++ "/rebar.config",
case filelib:is_dir(File) == true andalso filelib:is_file(RebarCfgFile) andalso lists:nth(1, File) =/= 46 andalso filename:basename(File) =/= "include" of
true ->
{ok, CurDir} = file:get_cwd(),
io:format("eNpc cur ~p: ~-18.s, cur pwd:~p ~n", [Args, File, CurDir]),

Načítá se…
Zrušit
Uložit