forked from OSS-Pipeline/rez-boost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.sh
47 lines (37 loc) · 1.39 KB
/
configure.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/bash
# Will exit the Bash script the moment any command will itself exit with a non-zero status, thus an error.
set -e
EXTRACT_PATH=$1
INSTALL_PATH=${REZ_BUILD_INSTALL_PATH}
BOOST_VERSION=${REZ_BUILD_PROJECT_VERSION}
# We print the arguments passed to the Bash script.
echo -e "\n"
echo -e "================="
echo -e "=== CONFIGURE ==="
echo -e "================="
echo -e "\n"
echo -e "[CONFIGURE][ARGS] EXTRACT PATH: ${EXTRACT_PATH}"
echo -e "[CONFIGURE][ARGS] INSTALL PATH: ${INSTALL_PATH}"
echo -e "[CONFIGURE][ARGS] BOOST VERSION: ${BOOST_VERSION}"
# We check if the arguments variables we need are correctly set.
# If not, we abort the process.
if [[ -z ${EXTRACT_PATH} || -z ${INSTALL_PATH} || -z ${BOOST_VERSION} ]]; then
echo -e "\n"
echo -e "[CONFIGURE][ARGS] One or more of the argument variables are empty. Aborting..."
echo -e "\n"
exit 1
fi
# We run the configuration script of Boost.
echo -e "\n"
echo -e "[CONFIGURE] Running the configuration script from Boost-${BOOST_VERSION}..."
echo -e "\n"
cd ${EXTRACT_PATH}
${EXTRACT_PATH}/bootstrap.sh \
--prefix=${INSTALL_PATH} \
--with-python=${REZ_PYTHON_ROOT}/bin/python \
--with-python-root=${REZ_PYTHON_ROOT} \
--with-python-version=${REZ_PYTHON_MAJOR_VERSION}.${REZ_PYTHON_MINOR_VERSION} \
-with-libraries=all
echo -e "\n"
echo -e "[CONFIGURE] Finished configuring Boost-${BOOST_VERSION}!"
echo -e "\n"