Skip to content

Commit

Permalink
Apply patch by Tino Breddin (tolbrino) to rebarize repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyio committed Jan 14, 2011
1 parent d915359 commit eba9953
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 67 deletions.
5 changes: 4 additions & 1 deletion .gitignore
@@ -1 +1,4 @@
erl_crash.dump
erl_crash.dump
.eunit/
*.beam
*.app
22 changes: 0 additions & 22 deletions Emakefile

This file was deleted.

15 changes: 3 additions & 12 deletions Makefile
@@ -1,19 +1,10 @@
all: compile

compile:
@mkdir -p ebin
@erl \
-pa ./ebin \
-make
@rebar compile

clean:
@rm -rf ./ebin/*.beam
@rm -rf ./test_ebin/*.beam
@rebar clean

test: compile
@erl \
-noshell \
-pa ./ebin \
-pa ./test_ebin \
-s eunit_helper start \
-s init stop
@rebar eunit
1 change: 0 additions & 1 deletion ebin/.gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions ebin/simple_bridge.app

This file was deleted.

Binary file added rebar
Binary file not shown.
4 changes: 4 additions & 0 deletions rebar.config
@@ -0,0 +1,4 @@
% -*- Erlang -*-
{erl_opts, [fail_on_warning, debug_info]}.
{cover_enabled, true}.
{xref_checks, [undefined_function_calls]}.
6 changes: 6 additions & 0 deletions src/simple_bridge.app.src
@@ -0,0 +1,6 @@
{application, simple_bridge, [
{description, "SimpleBridge - Common Interface to Erlang HTTP Servers"},
{vsn, "1.1.1"},
{applications, [kernel, stdlib, sasl]},
{registered, []}
]}.
6 changes: 0 additions & 6 deletions test/eunit_helper.erl

This file was deleted.

4 changes: 2 additions & 2 deletions test/utils.erl
Expand Up @@ -4,15 +4,15 @@

make_inets_get_bridge() ->
% Construct the inets bridge...
{ok, [InetsRequest] } = file:consult("data/inets_get_request_data"),
{ok, [InetsRequest] } = file:consult("../data/inets_get_request_data"),
{ok, Socket} = gen_tcp:connect(?PEER_IP, ?PEER_PORT, []),
InetsRequest1 = inject_socket(InetsRequest, Socket),
InetsBridge = simple_bridge:make_request(inets_request_bridge, InetsRequest1),
InetsBridge.

make_inets_post_bridge() ->
% Construct the inets bridge...
{ok, [InetsRequest] } = file:consult("data/inets_post_request_data"),
{ok, [InetsRequest] } = file:consult("../data/inets_post_request_data"),
{ok, Socket} = gen_tcp:connect(?PEER_IP, ?PEER_PORT, []),
InetsRequest1 = inject_socket(InetsRequest, Socket),
InetsBridge = simple_bridge:make_request(inets_request_bridge, InetsRequest1),
Expand Down
1 change: 0 additions & 1 deletion test_ebin/.gitignore

This file was deleted.

0 comments on commit eba9953

Please sign in to comment.