-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
39 lines (30 loc) · 1.08 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
#!/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}
EMBREE_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] EXTRACT PATH: ${EXTRACT_PATH}"
echo -e "[INSTALL][ARGS] INSTALL PATH: ${INSTALL_PATH}"
echo -e "[INSTALL][ARGS] EMBREE VERSION: ${EMBREE_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 ${EMBREE_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 Embree.
echo -e "\n"
echo -e "[INSTALL] Installing Embree-${EMBREE_VERSION}..."
echo -e "\n"
cp -R ${EXTRACT_PATH}/* ${INSTALL_PATH}
echo -e "[INSTALL] Finished installing Embree-${EMBREE_VERSION}!"
echo -e "\n"