blob: a2d0d99b6b2de63a0efd2ac85ae2c2fbcaff02dd [file] [log] [blame]
David Reiss8a162a52008-06-11 01:03:16 +00001#!/bin/sh
2
3ERL_THRIFT=../../lib/alterl
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 &&
David Reiss086c2792008-06-11 01:03:22 +000018 erl +K true -pa ${ERL_THRIFT}/ebin -pa ../gen-erl