blob: 788d7435d3929e7ed5aefb57abf006cb1ee84c50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# @configure_input@
PROTOC_C=@PROTOC_C@
build_dir=".protoc-c_build_$(basename $2)/"
mkdir -p "${build_dir}"
cp $1 "${build_dir}"
cd "${build_dir}"
eval $PROTOC_C --c_out=. $(basename $1)
cd ..
mv "${build_dir}/$(basename $2)" $2
rm -rf "${build_dir}"
|