changed file structure and build

This commit is contained in:
Jeena Paradies 2011-01-25 15:06:44 +01:00
parent cc36d46002
commit 06de3c2f7e
8 changed files with 5 additions and 8 deletions

6
build
View file

@ -1,3 +1,7 @@
#!/usr/bin/env bash
erlc *.erl -o ebin
for i in `find src -name "*.erl"`
do
erlc -o ebin $i
done

Binary file not shown.

Binary file not shown.

View file

@ -1,7 +0,0 @@
-module(js_test).
-export([run/0]).
run() ->
erlang_js:start(),
{ok, Port} = js_driver:new(),
ok = js:define(Port, <<"function helloworld(name){return 'Hello, ' + name}">>),
js:call(Port, <<"helloworld">>, [<<"Generic Game Server">>]).

Binary file not shown.

Binary file not shown.

Binary file not shown.