-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_all.sh
48 lines (40 loc) · 844 Bytes
/
build_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# e: exit if fails, x: trace
set -e
# shellcheck disable=SC2154
# echo an error message before exiting
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT
# Set the current directory
REPO_DIR=$(pwd)
# Build oslom
cd Algo_Oslom2
echo "at $(pwd)"
echo "sh compile_all.sh"
sh compile_all.sh
cd "${REPO_DIR}"
# Build LFR benchmark
cd Benchmark_LFR/2009-LFR-Benchmark/src_refactor_cpp
mkdir -p build
cd build
echo "at $(pwd)"
echo "cmake .."
cmake ..
cd "${REPO_DIR}"
# Build NMI
cd Measure_NMI
echo "at $(pwd)"
echo "make ."
make .
cd "${REPO_DIR}"
# Python requirements
cd PyAlgorithms
python3 -m pip install -r requirements.txt
cd "${REPO_DIR}"
# Finalize
echo ""
echo "everything is built, now you can do the following:"
echo "cd PyAlgorithms/src"
echo "python3 main.py"
echo ""
# Remove trap
trap - EXIT