You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/06/01 22:41:56 UTC
[02/50] rebar commit: updated refs/heads/import to e9f62c4
bootstrap now accepts --help usage flag
Project: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/commit/411d7036
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/tree/411d7036
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-rebar/diff/411d7036
Branch: refs/heads/import
Commit: 411d703666e8a8b4fca4ad6e7beff069fb64d0d4
Parents: 9080288
Author: Luis Rascao <lu...@gmail.com>
Authored: Thu Jun 12 14:05:35 2014 +0100
Committer: Luis Rascao <lu...@gmail.com>
Committed: Thu Jun 12 14:05:35 2014 +0100
----------------------------------------------------------------------
bootstrap | 13 +++++++++++++
1 file changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-rebar/blob/411d7036/bootstrap
----------------------------------------------------------------------
diff --git a/bootstrap b/bootstrap
index f6aa6cc..e14b0e0 100755
--- a/bootstrap
+++ b/bootstrap
@@ -3,6 +3,14 @@
%% ex: ft=erlang ts=4 sw=4 et
main(Args) ->
+ case lists:member("--help", Args) of
+ true ->
+ usage(),
+ halt(0);
+ false ->
+ ok
+ end,
+
%% Get a string repr of build time
Built = build_time(),
@@ -89,6 +97,11 @@ main(Args) ->
"Place this script anywhere in your path\n"
"and you can use rebar to build OTP-compliant apps.\n").
+usage() ->
+ io:format("Usage: bootstrap [OPTION]...~n"),
+ io:format(" force=1\t unconditional build~n"),
+ io:format(" debug\t add debug information~n").
+
is_otp(OtpInfo, Regex) ->
case re:run(OtpInfo, Regex, [{capture, none}]) of
match -> true;