Permalink
Browse files

Cleanup and simplify rebar and repo tool usage

  • Loading branch information...
1 parent a9c5d3a commit 4a8e64f456a04960029369c15768703af56f9aa4 @norton norton committed Aug 2, 2012
View
@@ -19,7 +19,7 @@ please follow this recipe:</p>
<pre><tt>$ mkdir working-directory-name
$ cd working-directory-name
-$ git clone git://github.com/ubf/ubf-redis.git ubf_redis
+$ git clone https://github.com/ubf/ubf-redis.git ubf_redis
$ cd ubf_redis
$ ./rebar get-deps
$ ./rebar clean
@@ -168,7 +168,7 @@ Create working directory
<pre><tt>$ mkdir working-directory-name
$ cd working-directory-name
-$ repo init -u git://github.com/ubf/manifests.git -m ubf-redis-default.xml</tt></pre>
+$ repo init -u https://github.com/ubf/manifests.git -m ubf-redis-default.xml</tt></pre>
<table><tr>
@@ -378,7 +378,7 @@ Make sure QuickCheck is in your Erlang code path. One simple way
</p>
-<pre><tt>true = code:add_pathz(os:getenv("HOME")++"/.erlang.d/lib/quviq/eqc-X.Y.Z/ebin").</tt></pre>
+<pre><tt>true = code:add_pathz(os:getenv("HOME")++"/.erlang.d/deps/quviq/eqc-X.Y.Z/ebin").</tt></pre>
</li>
<li>
@@ -398,7 +398,7 @@ Run 5,000 Redis Encoder/Decoder QuickCheck tests
</p>
-<pre><tt>$ cd working-directory-name/lib/ubf_redis/.test
+<pre><tt>$ cd working-directory-name/deps/ubf_redis/.test
$ erl -smp +A 5 -pz ../../ubf/ebin -pz ../../qc/ebin
1> ruf_tests:qc_run(5000).
@@ -418,7 +418,7 @@ Run 500 Redis Proxy QuickCheck tests
</p>
-<pre><tt>$ cd working-directory-name/lib/ubf_redis/.test
+<pre><tt>$ cd working-directory-name/deps/ubf_redis/.test
$ erl -smp +A 5 -pz ../../ubf/ebin -pz ../../qc/ebin
1> redis_proxy_tests:qc_run(500).
View
@@ -19,7 +19,7 @@ please follow this recipe:</p>
<pre><tt>$ mkdir working-directory-name
$ cd working-directory-name
-$ git clone git://github.com/ubf/ubf-redis.git ubf_redis
+$ git clone https://github.com/ubf/ubf-redis.git ubf_redis
$ cd ubf_redis
$ ./rebar get-deps
$ ./rebar clean
@@ -168,7 +168,7 @@ Create working directory
<pre><tt>$ mkdir working-directory-name
$ cd working-directory-name
-$ repo init -u git://github.com/ubf/manifests.git -m ubf-redis-default.xml</tt></pre>
+$ repo init -u https://github.com/ubf/manifests.git -m ubf-redis-default.xml</tt></pre>
<table><tr>
@@ -378,7 +378,7 @@ Make sure QuickCheck is in your Erlang code path. One simple way
</p>
-<pre><tt>true = code:add_pathz(os:getenv("HOME")++"/.erlang.d/lib/quviq/eqc-X.Y.Z/ebin").</tt></pre>
+<pre><tt>true = code:add_pathz(os:getenv("HOME")++"/.erlang.d/deps/quviq/eqc-X.Y.Z/ebin").</tt></pre>
</li>
<li>
@@ -398,7 +398,7 @@ Run 5,000 Redis Encoder/Decoder QuickCheck tests
</p>
-<pre><tt>$ cd working-directory-name/lib/ubf_redis/.test
+<pre><tt>$ cd working-directory-name/deps/ubf_redis/.test
$ erl -smp +A 5 -pz ../../ubf/ebin -pz ../../qc/ebin
1> ruf_tests:qc_run(5000).
@@ -418,7 +418,7 @@ Run 500 Redis Proxy QuickCheck tests
</p>
-<pre><tt>$ cd working-directory-name/lib/ubf_redis/.test
+<pre><tt>$ cd working-directory-name/deps/ubf_redis/.test
$ erl -smp +A 5 -pz ../../ubf/ebin -pz ../../qc/ebin
1> redis_proxy_tests:qc_run(500).
View
@@ -19,7 +19,7 @@ please follow this recipe:
------
$ mkdir working-directory-name
$ cd working-directory-name
-$ git clone git://github.com/ubf/ubf-redis.git ubf_redis
+$ git clone https://github.com/ubf/ubf-redis.git ubf_redis
$ cd ubf_redis
$ ./rebar get-deps
$ ./rebar clean
@@ -119,7 +119,7 @@ $ chmod a+x ~/bin/repo
------
$ mkdir working-directory-name
$ cd working-directory-name
-$ repo init -u git://github.com/ubf/manifests.git -m ubf-redis-default.xml
+$ repo init -u https://github.com/ubf/manifests.git -m ubf-redis-default.xml
------
+
NOTE: Your "Git" identity is needed during the init step. Please
@@ -210,7 +210,7 @@ $ make dialyze-nospec
resource file.
+
------
-true = code:add_pathz(os:getenv("HOME")++"/.erlang.d/lib/quviq/eqc-X.Y.Z/ebin").
+true = code:add_pathz(os:getenv("HOME")++"/.erlang.d/deps/quviq/eqc-X.Y.Z/ebin").
------
2. Compile for QuickCheck
@@ -224,7 +224,7 @@ $ make eqc-compile
3. Run 5,000 Redis Encoder/Decoder QuickCheck tests
+
------
-$ cd working-directory-name/lib/ubf_redis/.test
+$ cd working-directory-name/deps/ubf_redis/.test
$ erl -smp +A 5 -pz ../../ubf/ebin -pz ../../qc/ebin
1> ruf_tests:qc_run(5000).
@@ -241,7 +241,7 @@ Ok, passed 5000 tests
4. Run 500 Redis Proxy QuickCheck tests
+
------
-$ cd working-directory-name/lib/ubf_redis/.test
+$ cd working-directory-name/deps/ubf_redis/.test
$ erl -smp +A 5 -pz ../../ubf/ebin -pz ../../qc/ebin
1> redis_proxy_tests:qc_run(500).
View
@@ -18,8 +18,6 @@
%% Erlang compiler options
{erl_opts, [debug_info, warnings_as_errors
- , {i, "../qc/include/"}
- , {i, "../ubf/include/"}
]}.
%% Erlang edoc options for asciiedown_doclet
View
@@ -126,7 +126,7 @@
%%% @end
%%% ---------------------------------------------------
--include("ubf.hrl").
+-include_lib("ubf/include/ubf.hrl").
%% API
-export([proto_vsn/0, proto_driver/0, proto_packet_type/0]).
View
@@ -37,7 +37,7 @@
%%% @end
%%% ---------------------------------------------------
--include("ubf.hrl").
+-include_lib("ubf/include/ubf.hrl").
%% API
-export([encode/4]).
View
@@ -38,7 +38,7 @@
-add_types(ubf_redis_types_plugin).
-add_contract("src/ubf_redis_plugin").
--include("ubf.hrl").
+-include_lib("ubf/include/ubf.hrl").
info() ->
"I am a Redis server".
@@ -27,7 +27,7 @@
-compile(export_all).
-include_lib("eunit/include/eunit.hrl").
--include("ubf.hrl").
+-include_lib("ubf/include/ubf.hrl").
-define(APPLICATION, redis_plugin).
-define(RUF_PORT, server_port(test_ruf_tcp_port)).
@@ -28,8 +28,8 @@
-module(redis_proxy_plugin).
-behaviour(ubf_plugin_stateless).
--include("ubf.hrl").
--include("ubf_plugin_stateless.hrl").
+-include_lib("ubf/include/ubf.hrl").
+-include_lib("ubf/include/ubf_plugin_stateless.hrl").
-export([info/0, description/0, keepalive/0]).
-export([handlerStart/1, handlerStop/3, handlerRpc/1]).
@@ -38,7 +38,7 @@
-export([ubf_command_typename/4]).
-export([ubf_aggregate/1]).
--include("qc_ubf.hrl").
+-include_lib("ubf/include/qc_ubf.hrl").
%%%-------------------------------------------------------------------
%%% API
View
@@ -31,7 +31,7 @@
-ifdef(QC).
--include("qc.hrl").
+-include_lib("qc/include/qc.hrl").
-export([qc_run/0, qc_run/1]).
-export([prop_ruf_requests/0]).

0 comments on commit 4a8e64f

Please sign in to comment.