-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
42 lines (32 loc) · 1.01 KB
/
install.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
#!/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
BUILD_PATH=$1
PUGIXML_VERSION=${REZ_BUILD_PROJECT_VERSION}
# We print the arguments passed to the Bash script.
echo -e "\n"
echo -e "==============="
echo -e "=== INSTALL ==="
echo -e "==============="
echo -e "\n"
echo -e "[INSTALL][ARGS] BUILD PATH: ${BUILD_PATH}"
echo -e "[INSTALL][ARGS] PUGIXML VERSION: ${PUGIXML_VERSION}"
# We check if the arguments variables we need are correctly set.
# If not, we abort the process.
if [[ -z ${BUILD_PATH} || -z ${PUGIXML_VERSION} ]]; then
echo -e "\n"
echo -e "[INSTALL][ARGS] One or more of the argument variables are empty. Aborting..."
echo -e "\n"
exit 1
fi
# We install pugixml.
echo -e "\n"
echo -e "[INSTALL] Installing pugixml-${PUGIXML_VERSION}..."
echo -e "\n"
cd ${BUILD_PATH}
make \
-j${REZ_BUILD_THREAD_COUNT} \
install
echo -e "\n"
echo -e "[INSTALL] Finished installing pugixml-${PUGIXML_VERSION}!"
echo -e "\n"