forked from SixTrack/SixTrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildLibraries.sh
executable file
·47 lines (41 loc) · 934 Bytes
/
buildLibraries.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
#!/usr/bin/env bash
# Script for building SixTrack dependencies that do not need to be re-built every time SixTrack is built.
echo ""
echo " Building SixTrack Library Dependecies"
echo "======================================="
echo ""
ALL=true
BOINC=false
HDF5=false
PYTHIA=false
for ARG in "$@"; do
if [[ $ARG == "boinc" ]]; then
BOINC=true
elif [[ $ARG == "hdf5" ]]; then
HDF5=true
elif [[ $ARG == "pythia" ]]; then
PYTHIA=true
else
echo "Unknown library $ARG requested."
exit 1
fi
echo "Will build $ARG"
ALL=false
done
if [ $BOINC = true ] || [ $ALL = true ]; then
git submodule init lib/boinc
git submodule update lib/boinc
cd lib
./buildBoinc.sh
cd ..
fi
if [ $HDF5 = true ] || [ $ALL = true ]; then
cd lib
./buildHDF5.sh
cd ..
fi
if [ $PYTHIA = true ] || [ $ALL = true ]; then
cd lib
./buildPythia.sh
cd ..
fi