|
|
@ -192,7 +192,7 @@ getFileType(Source) -> |
|
|
|
determineIncludeDir(IncludeDir, BeamDir, SrcDir) -> |
|
|
|
IncludeBase = filename:basename(IncludeDir), |
|
|
|
case determineIncludeDirFromBeamDir(IncludeBase, IncludeDir, BeamDir) of |
|
|
|
{ok, _Dir} = RetD -> RetD; |
|
|
|
{ok, _Dir} = RetD -> RetD; |
|
|
|
undefined -> |
|
|
|
{ok, Cwd} = file:get_cwd(), |
|
|
|
% Cwd2 = normalizeCaseWindowsDir(Cwd), |
|
|
@ -222,7 +222,7 @@ determineIncludeDirFromBeamDir(IncludeBase, IncludeDir, BeamDir) -> |
|
|
|
getRootSrcDirFromSrcDir(SrcDir) -> |
|
|
|
NewDirName = filename:dirname(SrcDir), |
|
|
|
BaseName = filename:basename(SrcDir), |
|
|
|
case BaseName of |
|
|
|
case BaseName of |
|
|
|
?rootSrcDir -> |
|
|
|
NewDirName; |
|
|
|
_ -> |
|
|
@ -564,7 +564,8 @@ printResults(_Module, SrcFile, [], []) -> |
|
|
|
Msg = io_lib:format("~s Recompiled", [SrcFile]), |
|
|
|
esUtils:logSuccess(lists:flatten(Msg)); |
|
|
|
printResults(_Module, SrcFile, [], Warnings) -> |
|
|
|
formatErrors(fun esUtils:logWarnings/1, SrcFile, [], Warnings), io_lib:format("~s Recompiled with ~p warnings", [SrcFile, length(Warnings)]); |
|
|
|
formatErrors(fun esUtils:logWarnings/1, SrcFile, [], Warnings), |
|
|
|
io_lib:format("~s Recompiled with ~p warnings", [SrcFile, length(Warnings)]); |
|
|
|
printResults(_Module, SrcFile, Errors, Warnings) -> |
|
|
|
formatErrors(fun esUtils:logErrors/1, SrcFile, Errors, Warnings). |
|
|
|
|
|
|
@ -977,5 +978,5 @@ dateTimeToSec(DateTime) -> |
|
|
|
DateTime == 0 -> |
|
|
|
0; |
|
|
|
true -> |
|
|
|
erlang:universaltime_to_posixtime(DateTime ) |
|
|
|
erlang:universaltime_to_posixtime(DateTime) |
|
|
|
end. |