#Development
git clone https://github.com/up9cloud/line-api-server.git
#Update dependencies
##install thrift
#debian
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
wget 'http://mirror.reverse.net/pub/apache/thrift/0.9.1/thrift-0.9.1.tar.gz'
tar -xf thrift-0.9.1.tar.gz
cd thrift-0.9.1
./configure
make && make install
##copy thrift lib
rm -fr lib
cp -r <thrift folder>/lib/ .
##download line thrift spec file
rm -fr line-protocol
mv <line-protocol> line-protocol
##generate line thrift protocol code
thrift -r --gen <language> line-protocol/line.thrift
thrift -r --gen <language> line-protocol/line_main.thrift
fix php namespace
./gen-php/fixPhpNamespace.sh