blob: 7ed611af3f9e36416e5187cc60e8519b5359cb2d [file] [log] [blame]
Christopher Piro93a06642007-09-18 06:23:33 +00001#!/bin/sh
2
3ERL_THRIFT=../../lib/erl
4
5if ! [ -d ${ERL_THRIFT}/ebin ]; then
6 echo "Please build the Thrift library by running \`make' in ${ERL_THRIFT}"
7 exit 1
8fi
9
10if ! [ -d ../gen-erl ]; then
11 echo "Please run thrift first to generate ../gen-erl/"
12 exit 1
13fi
14
15
16erlc -I ${ERL_THRIFT}/include -I ../gen-erl -o ../gen-erl ../gen-erl/*.erl &&
17 erlc -I ${ERL_THRIFT}/include -I ../gen-erl *.erl &&
Christopher Piro5165f3e2008-01-15 12:04:12 +000018 erl +K true -pa ${ERL_THRIFT}/ebin -pa ../gen-erl -config server.config