/scripts/new_mochiweb.erl

http://github.com/basho/mochiweb · Erlang · 23 lines · 16 code · 4 blank · 3 comment · 0 complexity · c27234d1c8fc78f577fcf497e93a988b MD5 · raw file

  1. #!/usr/bin/env escript
  2. %% -*- mode: erlang -*-
  3. -export([main/1]).
  4. %% External API
  5. main(_) ->
  6. usage().
  7. %% Internal API
  8. usage() ->
  9. io:format(
  10. "new_mochiweb.erl has been replaced by a rebar template!\n"
  11. "\n"
  12. "To create a new mochiweb using project:\n"
  13. " make app PROJECT=project_name\n"
  14. "\n"
  15. "To create a new mochiweb using project in a specific directory:\n"
  16. " make app PROJECT=project_name PREFIX=$HOME/projects/\n"
  17. "\n"
  18. ),
  19. halt(1).