forked from OSU-CMS/Ph2_ACF_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compileSubModules.sh
84 lines (64 loc) · 1.75 KB
/
compileSubModules.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh
echo "-----Compiling Ph2_ACF-----"
echo "---------------------------"
export Ph2_ACF_VERSION="v4-12"
mkdir Ph2_ACF/build/
cd Ph2_ACF
source ./setup.sh
cd build
cmake3 ..
make -j$(nproc)
cd ..
source ./setup.sh
echo "-----Ph2_ACF Setup Complete-----"
echo " "
echo "-----Compiling power_supply-----"
echo "--------------------------------"
cd ../power_supply/
mkdir build
source ./setup.sh
cd build
cmake3 ..
make -j$(nproc)
cd ..
source ./setup.sh
cd ../
echo "-----power_supply Setup Complete-----"
echo " "
echo "-----Settings up GUI Environment-----"
echo "-------------------------------------"
export DATA_dir=$PWD/data/TestResults
export GUI_dir=$PWD
export UsePowerSupplyLib=false
if [ ! -d $PH2ACF_BASE_DIR ]; then
echo "Error: PH2ACF_BASE_DIR not found!"
fi;
if [ ! -d $DATA_dir ]; then
echo "DATA_dir not found! Making it now!"
mkdir -p -m777 $DATA_dir
fi;
if [ ! -d $PH2ACF_BASE_DIR/test ]; then
echo "Test directory not found! Making it now!"
mkdir -p -m777 $PH2ACF_BASE_DIR/test;
fi;
if [ ! -d $DATA_dir ]; then
echo "Failed to create TestResults folder under DATA_dir, please check"
fi;
if [ ! -d $PH2ACF_BASE_DIR/test ]; then
echo "Failed to create test folder under PH2ACF_BASE_DIR, please check"
fi;
if [ "$UsePowerSupplyLib" = true ]
then
export PowerSupplyArea=$PWD/power_supply
else
unset PowerSupplyArea
fi
export PYTHONPATH=${PYTHONPATH}:${GUI_dir}
#export DATA_dir=/Users/czkaiweb/Research/data/
chmod 755 $PWD/Gui/GUIutils/*.sh
#cd $PH2ACF_BASE_DIR
#source setup.sh
#export Ph2_ACF_VERSION=$(git describe --tags --abbrev=0)
cd $GUI_dir
echo "-----GUI Environment Setup Complete-----"
echo " "