David Reiss | 8a162a5 | 2008-06-11 01:03:16 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
David Reiss | 9f2a5d7 | 2008-06-11 01:15:45 +0000 | [diff] [blame] | 3 | ERL_THRIFT=../../lib/erl |
David Reiss | 8a162a5 | 2008-06-11 01:03:16 +0000 | [diff] [blame] | 4 | |
| 5 | if ! [ -d ${ERL_THRIFT}/ebin ]; then |
| 6 | echo "Please build the Thrift library by running \`make' in ${ERL_THRIFT}" |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | if ! [ -d ../gen-erl ]; then |
| 11 | echo "Please run thrift first to generate ../gen-erl/" |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
| 15 | |
| 16 | erlc -I ${ERL_THRIFT}/include -I ../gen-erl -o ../gen-erl ../gen-erl/*.erl && |
| 17 | erlc -I ${ERL_THRIFT}/include -I ../gen-erl *.erl && |
David Reiss | 086c279 | 2008-06-11 01:03:22 +0000 | [diff] [blame] | 18 | erl +K true -pa ${ERL_THRIFT}/ebin -pa ../gen-erl |