Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated make.sh

  • Loading branch information...
commit 703e41e7f8730ede88fd766629fa752859458683 1 parent cc9500d
root authored
Showing with 22 additions and 1 deletion.
  1. +22 −1 make.sh
View
23 make.sh
@@ -1,2 +1,23 @@
-#! /bin/sh
+#!/bin/bash
+ERLIB=$(erl -noshell -eval 'io:format(code:lib_dir()).' -s erlang halt)
+YAWS=$(ls $ERLIB | grep yaws)
+
+cat >Emakefile <<EOF
+{"src/erlyweb/*", [debug_info, {outdir, "ebin"},
+{i,"$ERLIB/$YAWS/include"}]}.
+{"src/erlydb/*", [debug_info, {outdir, "ebin"}]}.
+{"src/erlsql/*", [debug_info, {outdir, "ebin"}]}.
+{"src/erltl/*", [debug_info, {outdir, "ebin"}]}.
+{"src/smerl/*", [debug_info, {outdir, "ebin"}]}.
+{"src/erlang-mysql-driver/*", [debug_info, {outdir, "ebin"}]}.
+{"src/erlang-psql-driver/*", [debug_info, strict_record_tests, {outdir,
+"ebin"}]}.
+EOF
+
+ebin_dir="./ebin"
+# bash check if directory exists
+if [ ! -d $ebin_dir ]; then
+ mkdir $ebin_dir
+fi
+
erl -noshell -eval 'make:all(), filelib:fold_files("src/", ".+\.et$", true, fun(F, _Acc) -> erltl:compile(F, [{outdir, "ebin"}, debug_info, show_errors, show_warnings]) end, []).' -pa ebin -s erlang halt

0 comments on commit 703e41e

Please sign in to comment.
Something went wrong with that request. Please try again.