storlets/install_libs.sh
Takashi Kajinami d0194f66b2 Create an independent directory to place jar libraries
Previously we place all lib files under /usr/local/lib/storlets, but
this makes it more difficult to have lang specific files there.

This patch creates java directory where we place jar files, so that
we can place libraries for other languages like python in the future.

Change-Id: Id384c72ab6e658c55312ad62499dfc2100ba3ca3
2019-07-23 16:13:27 +09:00

31 lines
582 B
Bash
Executable File

#!/bin/bash
#
# Install required libraries written in c and java
#
# NOTE: The libraries are currently installed under /usr/lib/storlets
# so you may need root privilege to execute this script
set -x
# build scripts
cd scripts
# TODO(takashi): also install them
make
cd -
# install c library
cd src/c/sbus
make && make install
cd -
# Install java library
ant install
# Install container side scripts
SRC=bin
DST=/usr/local/libexec/storlets
mkdir -p $DST
chmod 755 $DST
cp "$SRC/init_container.sh" $DST
cp "$SRC/storlets-daemon" $DST
cp "$SRC/storlets-daemon-factory" $DST