24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-21 00:19:53 +02:00

Fix copy deps *.app file, and strip *.src if present

This commit is contained in:
Badlop 2024-06-26 18:26:37 +02:00
parent 394ba26d1d
commit f3ad49ebc4

View File

@ -599,7 +599,7 @@ compile(LibDir) ->
Includes = [{i, Inc} || Inc <- filelib:wildcard(LibDir++"/../../**/include")], Includes = [{i, Inc} || Inc <- filelib:wildcard(LibDir++"/../../**/include")],
Options = [{outdir, Bin}, {i, LibDir++"/.."} | Includes ++ compile_options()], Options = [{outdir, Bin}, {i, LibDir++"/.."} | Includes ++ compile_options()],
filelib:ensure_dir(filename:join(Bin, ".")), filelib:ensure_dir(filename:join(Bin, ".")),
[copy(App, Bin) || App <- filelib:wildcard(Src++"/*.app")], [copy(App, filename:join(Bin, filename:basename(App, ".src"))) || App <- filelib:wildcard(Src++"/*.app*")],
compile_c_files(LibDir), compile_c_files(LibDir),
Er = [compile_erlang_file(Bin, File, Options) Er = [compile_erlang_file(Bin, File, Options)
|| File <- filelib:wildcard(Src++"/**/*.erl")], || File <- filelib:wildcard(Src++"/**/*.erl")],