Newer
Older
function do_subdirs
{
local subdirs="zafl"
local my_cwd=$PWD
for subdir in $subdirs
do
cd $subdir
if [[ -x ./get-packages.sh ]]; then
./get-packages.sh "$@"
fi
done
}
function main()
{
local here_dir=$(pwd)
local grpc_packs="build-essential autoconf libtool pkg-config"
# install each subdirectory that needs installing.
# install my packages.
if [[ -d $here_dir/third-party/grpc ]]; then
cd $here_dir/third-party/grpc
if [[ ! -x third_party/protobuf/src/protoc ]] && [[ ! -x /usr/local/bin/protoc ]] ; then
if [[ ! -f Makefile ]]; then
cmake -DgRPC_INSTALL=ON -DCMAKE_INSTALL_PREFIX=/usr/local .
fi
make -j 3
sudo make install
cd $here_dir/third-party/grpc
pwd
sudo make install
cd $here_dir