Project

General

Profile

root / trunk / compiler / serialization / run_protoc.sh

1 2 krennw
#!/bin/bash
2
3
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4
#           DO NOT MODIFY THIS SCRIPT         !!
5
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6
7
# This script will compile all .proto files found in serialization/src
8
# Invocation: ./run_protoc.sh /path/to/protoc
9
10
PROTOC="$1"
11
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
12
INCLUDE=${DIR}/src
13
MOMUT=${DIR}/..
14
JAVA_OUT=${MOMUT}/src
15
CPP_OUT=${MOMUT}/executor/source/runtime/serialize/gen
16
17
if [[ -z PROTOC ]]; then
18
	echo usage: $0 '/path/to/yourProtocExecutable';
19
	exit 1;
20
fi
21
22
${PROTOC} -I=${INCLUDE} --java_out=${JAVA_OUT} --cpp_out=${CPP_OUT} ${INCLUDE}/*.proto