-
Notifications
You must be signed in to change notification settings - Fork 8
/
shell_driver.sh
40 lines (34 loc) · 984 Bytes
/
shell_driver.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
#!/bin/bash
#################################################
# #
# Shell script to run the arbitrage framework #
# - A single execution of this will facilite #
# user setting creation and execute #
# iterations of the frame work #
# #
#################################################
filename="user_settings.txt"
fileCopyLoc="out/build/user_settings.txt"
if [ -e "$filename" ]
then
if diff "$filename" "$fileCopyLoc" > /dev/null
then
# build the framework
echo "user_settings are already generated"
echo "building framework"
echo ""
cmake -S . -B out/build/
else
bash create_user_settings.sh
fi
else
# create user_settings from console input
bash create_user_settings.sh
fi
clear
cd out/build/
# compile the frame work
make
echo ""
echo "finished framework build"
./Crypto