Use rebar dependencies to pull cecho #6

Closed
wants to merge 3 commits into
from
View
1 .gitignore
@@ -1 +1,2 @@
*.beam
+deps
View
7 Makefile
@@ -1,4 +1,9 @@
-all:
+all: deps compile
+
+deps:
+ @./rebar get-deps
+
+compile:
@./rebar compile
test: force
View
4 entop
@@ -46,7 +46,9 @@ do
esac
done
-erl -noinput -hidden -pa ebin/ -pa ../cecho/ebin/ +A 20 +Bc -eval "entop:start('${TARGETNODE}')" $NAME $COOKIE $@
+DIRNAME=`(readlink -n $0 || echo $0) | xargs dirname`
+
+erl -noinput -hidden -pa $DIRNAME/ebin -pa $DIRNAME/deps/cecho/ebin +A 20 +Bc -eval "entop:start('${TARGETNODE}')" $NAME $COOKIE $@
CODE=$?
if [[ $CODE -eq 101 ]]; then
View
BIN rebar
Binary file not shown.
View
3 rebar.config
@@ -1,3 +1,4 @@
{erl_opts, [fail_on_warning, debug_info]}.
{lib_dirs, [".."]}.
-{clean_files, ["ebin/*.beam"]}.
+{clean_files, ["ebin/*.beam"]}.
+{deps, [{cecho, ".*", {git, "https://github.com/mazenharake/cecho.git", "HEAD"}}]}.