diff options
author | Loïc Hoguin <[email protected]> | 2015-09-21 10:51:08 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-09-21 10:51:08 +0200 |
commit | d415fda4f3c7a9054817c842002134c66939ff92 (patch) | |
tree | f49e2a537916b43d977414b89b352ee99343a407 /core/deps.mk | |
parent | a37e3aca666fe5faaf90eef79fc7bb0f9a92b940 (diff) | |
download | erlang.mk-d415fda4f3c7a9054817c842002134c66939ff92.tar.gz erlang.mk-d415fda4f3c7a9054817c842002134c66939ff92.tar.bz2 erlang.mk-d415fda4f3c7a9054817c842002134c66939ff92.zip |
Fix autopatch of non-atom applications names
Diffstat (limited to 'core/deps.mk')
-rw-r--r-- | core/deps.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/deps.mk b/core/deps.mk index 1f46a5c..bbd1a64 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -446,11 +446,11 @@ define dep_autopatch_app.erl case filelib:is_regular(App) of false -> ok; true -> - {ok, [{application, $(1), L0}]} = file:consult(App), + {ok, [{application, '$(1)', L0}]} = file:consult(App), Mods = filelib:fold_files("$(DEPS_DIR)/$(1)/src", "\\\\.erl$$$$", true, fun (F, Acc) -> [list_to_atom(filename:rootname(filename:basename(F)))|Acc] end, []), L = lists:keystore(modules, 1, L0, {modules, Mods}), - ok = file:write_file(App, io_lib:format("~p.~n", [{application, $(1), L}])) + ok = file:write_file(App, io_lib:format("~p.~n", [{application, '$(1)', L}])) end end, UpdateModules("$(DEPS_DIR)/$(1)/ebin/$(1).app"), |