Replace Python csv_to_snapshot with C++
Summary: Setup scaffolding for building Memgraph tools. Change `utils::Split` without delimiter to split on whitespace. This should make `Split` behave just like Python's `str.split`, which is more practical for splitting on word boundaries. Add `utils::StartsWith` function. Rewrite csv_to_snapshot to C++. Reviewers: mferencevic Reviewed By: mferencevic Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D822
This commit is contained in:
16
tools/setup
Executable file
16
tools/setup
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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 \
|
||||
-DCMAKE_INSTALL_PREFIX=${script_dir} \
|
||||
${script_dir}
|
||||
|
||||
# Install the tools
|
||||
make -j$(nproc) install
|
||||
Reference in New Issue
Block a user