diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-09-16 19:47:54 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-09-16 19:47:54 -0500 |
commit | 0f6c6305d6dc35abcafe5df25d41cd786cc3f153 (patch) | |
tree | a90ff1bff7ec98c8c31ef94e115dd9df021bce6b /priv | |
parent | 5980a3c72aacf5a4d2054ebb09926cdce5ca987b (diff) |
fix lib to not start mod
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/mod.erl | 13 | ||||
-rw-r--r-- | priv/templates/otp_lib.app.src | 1 | ||||
-rw-r--r-- | priv/templates/otp_lib.template | 3 |
3 files changed, 14 insertions, 3 deletions
diff --git a/priv/templates/mod.erl b/priv/templates/mod.erl new file mode 100644 index 0000000..1be8186 --- /dev/null +++ b/priv/templates/mod.erl @@ -0,0 +1,13 @@ +-module({{appid}}). + +%% Application callbacks +-export([]). + +%%==================================================================== +%% API +%%==================================================================== + + +%%==================================================================== +%% Internal functions +%%==================================================================== diff --git a/priv/templates/otp_lib.app.src b/priv/templates/otp_lib.app.src index 1a4e4e8..5009c3d 100644 --- a/priv/templates/otp_lib.app.src +++ b/priv/templates/otp_lib.app.src @@ -3,7 +3,6 @@ {description, "{{appid}}"} ,{vsn, "0.1.0"} ,{registered, []} - ,{mod, {'{{appid}}_app', []}} ,{applications, [kernel ,stdlib diff --git a/priv/templates/otp_lib.template b/priv/templates/otp_lib.template index 1388dfb..19d7593 100644 --- a/priv/templates/otp_lib.template +++ b/priv/templates/otp_lib.template @@ -1,6 +1,5 @@ {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, "rebar.config", "rebar.config"}. {template, "gitignore", ".gitignore"}. |