Description
BACK_GROUND:
the rebar3 version is the lastest version.
when compile start, copy the file for each app to __build/xxx directory, when in unix enviroment, each directory will get 2 of them.
eg: __build/default/lib/<application_name>/include/include, it willl not happen in win32 enviroment.
BUG:
i download the source code from here and check the code, when compile, in file rebar_prv_compile.erl,
funtion copy_app_dirs/3 copy the directory from app_dir to out_dir, andthen jump to the mod rebar_file_utils, i print the source and
dest, and i found that the cmd in unix is like this => cp -Rp /mnt/hgfs/project/game/aa/apps/aa/include /mnt/hgfs/project/game/aa/_build/default/lib/aa/include, it will cp the directory /mnt/hgfs/project/game/aa/apps/aa/include to
/mnt/hgfs/project/game/aa/_build/default/lib/aa/include, which make the directory become /mnt/hgfs/project/game/aa/_build/default/lib/aa/include/include, there's two of include directory, which make compile process can
not find my *.hrl files and compile error occured.
FIX_SUGGESTION:
maybe the cp function can check if thereis directory, the cmd change to cp -Rp DirA* DirB or somthing else ???