blob: 163ff7d249ed91465b4290a849f7818d3d3db27d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
PROTOC_C=${PROTOC_C:-protoc-c}
mkdir -p .protoc-c_build/
cp $1 .protoc-c_build/
cd .protoc-c_build/
eval $PROTOC_C --c_out=. $(basename $1)
cd ..
mv .protoc-c_build/$(basename $2) $2
rm -rf .protoc-c_build/
|