mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
122803bade
Patch: Peace add pipe crossplatform example to contrib git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1351477 13f79535-47bb-0310-9956-ffa450edef68
25 lines
381 B
Bash
25 lines
381 B
Bash
#!/bin/bash
|
|
|
|
THRIFT_COMPILER=./thrift
|
|
OUTPUT_FOLDER=$PWD
|
|
|
|
if [ ! -e "${THRIFT_COMPILER}" ]
|
|
then
|
|
THRIFT_COMPILER=thrift
|
|
command -v ${THRIFT_COMPILER} >/dev/null 2>&1
|
|
if [ $? -eq 1 ]; then
|
|
echo
|
|
echo "thrift compiler not found."
|
|
echo
|
|
exit
|
|
fi
|
|
fi
|
|
|
|
${THRIFT_COMPILER} --gen cpp Sample.thrift
|
|
|
|
echo
|
|
echo "Files have been generated in gen-cpp."
|
|
|
|
exit
|
|
|