blob: 3b18f909e1c6bb05c046c0ceeeae11d7ecb4804c [file] [log] [blame]
Roger Meier122803b2012-06-18 20:23:58 +00001#!/bin/bash
2
3THRIFT_COMPILER=./thrift
4OUTPUT_FOLDER=$PWD
5
6if [ ! -e "${THRIFT_COMPILER}" ]
7then
8 THRIFT_COMPILER=thrift
9 command -v ${THRIFT_COMPILER} >/dev/null 2>&1
10 if [ $? -eq 1 ]; then
11 echo
12 echo "thrift compiler not found."
13 echo
14 exit
15 fi
16fi
17
18${THRIFT_COMPILER} --gen cpp Sample.thrift
19
20echo
21echo "Files have been generated in gen-cpp."
22
23exit
24