PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 5%% External API
 6
 7main(_) ->
 8    usage().
 9
10%% Internal API
11
12usage() ->
13    io:format(
14        "new_mochiweb.erl has been replaced by a rebar template!\n"
15        "\n"
16        "To create a new mochiweb using project:\n"
17        "   make app PROJECT=project_name\n"
18        "\n"
19        "To create a new mochiweb using project in a specific directory:\n"
20        "   make app PROJECT=project_name PREFIX=$HOME/projects/\n"
21        "\n"
22    ),
23    halt(1).