thrift/contrib/transport-sample/thriftme.sh
Roger Meier 122803bade THRIFT-1558 Named Pipe and Anonymous Pipe transport for Windows
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
2012-06-18 20:23:58 +00:00

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