blob: a76352693ac0e40ccf5e42beba08d9708e50dd0b [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 &&
18 erl +K true -pa ${ERL_THRIFT}/ebin -pa ../gen-erl