blob: f101e7a0a27b302d4741d5e618efbfe36e73ae75 [file] [log] [blame]
David Reiss8a162a52008-06-11 01:03:16 +00001#!/bin/sh
2
David Reiss9f2a5d72008-06-11 01:15:45 +00003ERL_THRIFT=../../lib/erl
David Reiss8a162a52008-06-11 01:03:16 +00004
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