Browse Source

fix lib to not start mod

pull/3/head
Tristan Sloughter 10 years ago
parent
commit
0f6c6305d6
3 changed files with 14 additions and 3 deletions
  1. +13
    -0
      priv/templates/mod.erl
  2. +0
    -1
      priv/templates/otp_lib.app.src
  3. +1
    -2
      priv/templates/otp_lib.template

+ 13
- 0
priv/templates/mod.erl View File

@ -0,0 +1,13 @@
-module({{appid}}).
%% Application callbacks
-export([]).
%%====================================================================
%% API
%%====================================================================
%%====================================================================
%% Internal functions
%%====================================================================

+ 0
- 1
priv/templates/otp_lib.app.src View File

@ -3,7 +3,6 @@
{description, "{{appid}}"} {description, "{{appid}}"}
,{vsn, "0.1.0"} ,{vsn, "0.1.0"}
,{registered, []} ,{registered, []}
,{mod, {'{{appid}}_app', []}}
,{applications, ,{applications,
[kernel [kernel
,stdlib ,stdlib

+ 1
- 2
priv/templates/otp_lib.template View File

@ -1,6 +1,5 @@
{variables, []}. {variables, []}.
{template, "app.erl", "src/{{appid}}_app.erl"}.
{template, "sup.erl", "src/{{appid}}_sup.erl"}.
{template, "mod.erl", "src/{{appid}}.erl"}.
{template, "otp_lib.app.src", "src/{{appid}}.app.src"}. {template, "otp_lib.app.src", "src/{{appid}}.app.src"}.
{template, "rebar.config", "rebar.config"}. {template, "rebar.config", "rebar.config"}.
{template, "gitignore", ".gitignore"}. {template, "gitignore", ".gitignore"}.

Loading…
Cancel
Save