-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhemera-make-install
More file actions
executable file
·45 lines (38 loc) · 988 Bytes
/
hemera-make-install
File metadata and controls
executable file
·45 lines (38 loc) · 988 Bytes
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
#!/bin/bash
# External variables
PROJECT_PATH="${1}"
ARCH="${2}"
if [ "${ARCH}" == "" ]; then
ARCH="${HEMERA_BUILD_ARCH}"
fi
if [ "${ARCH}" == "" ]; then
ARCH="i586"
fi
# Common variables
SHARED_SOURCE_BASE="/usr/share/hemera-devel-tools"
SHARED_SOURCE_PATHS="${SHARED_SOURCE_BASE}/hemera-vars-paths"
SHARED_SOURCE_SB2="${SHARED_SOURCE_BASE}/hemera-vars-sb2"
if ! [ -f "${SHARED_SOURCE_PATHS}" ]; then
echo "Missing \"${SHARED_SOURCE_PATHS}\" source file. Cannot continue."
exit 1
fi
source "${SHARED_SOURCE_PATHS}"
if [ "${ARCH}" != "i586" ]; then
if ! [ -f "${SHARED_SOURCE_SB2}" ]; then
echo "Missing \"${SHARED_SOURCE_SB2}\" source file. Cannot continue."
exit 1
fi
source "${SHARED_SOURCE_SB2}"
fi
# Other variables
if [ "${ARCH}" == "i586" ]; then
FULL_BUILD_PATH="${BUILD_PATH}"
EXECUTOR=""
else
FULL_BUILD_PATH="${TARGET_PATH}${BUILD_PATH}"
EXECUTOR="${SB2TMR}"
fi
# Let's do the work
cd ${FULL_BUILD_PATH} &&
${EXECUTOR} make install
exit $?