PageRenderTime 222ms CodeModel.GetById 141ms app.highlight 1ms RepoModel.GetById 79ms app.codeStats 0ms

/support/templates/mochiwebapp.template

http://github.com/basho/mochiweb
Unknown | 22 lines | 22 code | 0 blank | 0 comment | 0 complexity | 42b49e6b2072c37a0ee6f3c0a2e51106 MD5 | raw file
 1%% -*- erlang -*-
 2{variables, [{appid, "mochiwebapp"},
 3             {author, "Mochi Media <dev@mochimedia.com>"},
 4             {year, "2010"},
 5             {version, "0.1"},
 6             {port, 8080},
 7             {dest, "{{appid}}"}]}.
 8{dir, "{{dest}}"}.
 9{template, "mochiwebapp_skel/src/mochiapp.app.src", "{{dest}}/src/{{appid}}.app.src"}.
10{template, "mochiwebapp_skel/src/mochiapp.erl", "{{dest}}/src/{{appid}}.erl"}.
11{template, "mochiwebapp_skel/src/mochiapp_app.erl", "{{dest}}/src/{{appid}}_app.erl"}.
12{template, "mochiwebapp_skel/src/mochiapp_deps.erl", "{{dest}}/src/{{appid}}_deps.erl"}.
13{template, "mochiwebapp_skel/src/mochiapp_sup.erl", "{{dest}}/src/{{appid}}_sup.erl"}.
14{template, "mochiwebapp_skel/src/mochiapp_web.erl", "{{dest}}/src/{{appid}}_web.erl"}.
15{template, "mochiwebapp_skel/start-dev.sh", "{{dest}}/start-dev.sh"}.
16{template, "mochiwebapp_skel/priv/www/index.html", "{{dest}}/priv/www/index.html"}.
17{file, "../../.gitignore", "{{dest}}/.gitignore"}.
18{file, "../../Makefile", "{{dest}}/Makefile"}.
19{file, "mochiwebapp_skel/rebar.config", "{{dest}}/rebar.config"}.
20{file, "../../rebar", "{{dest}}/rebar"}.
21{chmod, 8#755, "{{dest}}/rebar"}.
22{chmod, 8#755, "{{dest}}/start-dev.sh"}.