2017-09-22 19:46:06 +08:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# Builds the memgraph tools and installs them in this directory.
|
|
|
|
|
|
|
|
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
mkdir -p ${script_dir}/build
|
|
|
|
cd ${script_dir}/build
|
|
|
|
|
|
|
|
# Setup cmake
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release \
|
2017-12-04 20:56:17 +08:00
|
|
|
-DTOOLS=ON \
|
2017-09-22 19:46:06 +08:00
|
|
|
-DCMAKE_INSTALL_PREFIX=${script_dir} \
|
2017-12-04 20:56:17 +08:00
|
|
|
${script_dir}/..
|
2017-09-22 19:46:06 +08:00
|
|
|
|
|
|
|
# Install the tools
|
2017-12-04 20:56:17 +08:00
|
|
|
make -j$(nproc) tools
|
|
|
|
cmake -DCOMPONENT=tools -P cmake_install.cmake
|
|
|
|
cd ${script_dir}
|
|
|
|
mv bin/* ./
|
|
|
|
rm -rf bin build
|