Skip to content
Newer
Older
100644 41 lines (32 sloc) 1.67 KB
9203bfd @RobCabacungan Initial commit.
RobCabacungan authored Jun 6, 2011
1 %% -*- erlang -*-
2
3 %%
4 %% project template
5 %%
6 %% Sets up boilerplate for a distributed erlang application that
7 %% supports hot upgrades.
8 %%
9 %% Example:
10 %%
11 %% rebar create template=project projectid=superfly
12 %%
13
14 {variables, [{projectid, "myproj"}]}.
15
16 % Build Files
17 {template, "project/Makefile", "{{projectid}}/Makefile"}.
18 {template, "project/gitignore", "{{projectid}}/.gitignore"}.
19 {template, "project/rebar.config", "{{projectid}}/rebar.config"}.
20
21 % App Files
22 {template, "project/myproj.app.src", "{{projectid}}/apps/{{projectid}}/src/{{projectid}}.app.src"}.
23 {template, "project/myproj.erl", "{{projectid}}/apps/{{projectid}}/src/{{projectid}}.erl"}.
24 {template, "project/myproj_app.erl", "{{projectid}}/apps/{{projectid}}/src/{{projectid}}_app.erl"}.
25 {template, "project/myproj_sup.erl", "{{projectid}}/apps/{{projectid}}/src/{{projectid}}_sup.erl"}.
26 {template, "project/myproj_server.erl", "{{projectid}}/apps/{{projectid}}/src/{{projectid}}_server.erl"}.
27
28 % Release files
29 {template, "project/vm.args", "{{projectid}}/rel/files/vm.args"}.
30 {template, "project/reltool.config", "{{projectid}}/rel/reltool.config"}.
31 {template, "project/app.config", "{{ projectid}}/rel/files/app.config"}.
32
33 {file, "project/erl.script", "{{projectid}}/rel/files/erl"}.
34 {chmod, 8#744, "{{projectid}}/rel/files/erl"}.
35
36 {file, "project/nodetool", "{{projectid}}/rel/files/nodetool"}.
37 {chmod, 8#744, "{{projectid}}/rel/files/nodetool"}.
38
39 {file, "project/runner", "{{projectid}}/rel/files/{{projectid}}"}.
40 {chmod, 8#744, "{{projectid}}/rel/files/{{projectid}}"}.
Something went wrong with that request. Please try again.