/scripts/new_mochiweb.erl
http://github.com/basho/mochiweb · Erlang · 23 lines · 16 code · 4 blank · 3 comment · 0 complexity · c27234d1c8fc78f577fcf497e93a988b MD5 · raw file
- #!/usr/bin/env escript
- %% -*- mode: erlang -*-
- -export([main/1]).
- %% External API
- main(_) ->
- usage().
- %% Internal API
- usage() ->
- io:format(
- "new_mochiweb.erl has been replaced by a rebar template!\n"
- "\n"
- "To create a new mochiweb using project:\n"
- " make app PROJECT=project_name\n"
- "\n"
- "To create a new mochiweb using project in a specific directory:\n"
- " make app PROJECT=project_name PREFIX=$HOME/projects/\n"
- "\n"
- ),
- halt(1).