This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runRelease.sh
executable file
·57 lines (47 loc) · 1.66 KB
/
runRelease.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
48
49
50
51
52
53
54
#!/bin/bash
export XPCF_MODULE_ROOT=~/.remaken/packages/linux-gcc
echo "XPCF_MODULE_ROOT=$XPCF_MODULE_ROOT"
# include dependencies path to ld_library_path
ld_library_path="./"
if [ -f "$PWD/$1_conf.xml" ]; then
for modulePath in $(grep -o "\$XPCF_MODULE_ROOT.*lib" $1_conf.xml)
do
modulePath=${modulePath/"\$XPCF_MODULE_ROOT"/${XPCF_MODULE_ROOT}}
if ! [[ $ld_library_path =~ "$modulePath/x86_64/shared/release" ]]
then
ld_library_path=$ld_library_path:$modulePath/x86_64/shared/release
fi
done
fi
if [ -f "$PWD/$1_Processing_conf.xml" ]; then
for modulePath in $(grep -o "\$XPCF_MODULE_ROOT.*lib" $1_Processing_conf.xml)
do
modulePath=${modulePath/"\$XPCF_MODULE_ROOT"/${XPCF_MODULE_ROOT}}
if ! [[ $ld_library_path =~ "$modulePath/x86_64/shared/release" ]]
then
ld_library_path=$ld_library_path:$modulePath/x86_64/shared/release
fi
done
fi
if [ -f "$PWD/$1_Producer_conf.xml" ]; then
for modulePath in $(grep -o "\$XPCF_MODULE_ROOT.*lib" $1_Producer_conf.xml)
do
modulePath=${modulePath/"\$XPCF_MODULE_ROOT"/${XPCF_MODULE_ROOT}}
if ! [[ $ld_library_path =~ "$modulePath/x86_64/shared/release" ]]
then
ld_library_path=$ld_library_path:$modulePath/x86_64/shared/release
fi
done
fi
if [ -f "$PWD/$1_Viewer_conf.xml" ]; then
for modulePath in $(grep -o "\$XPCF_MODULE_ROOT.*lib" $1_Viewer_conf.xml)
do
modulePath=${modulePath/"\$XPCF_MODULE_ROOT"/${XPCF_MODULE_ROOT}}
if ! [[ $ld_library_path =~ "$modulePath/x86_64/shared/release" ]]
then
ld_library_path=$ld_library_path:$modulePath/x86_64/shared/release
fi
done
fi
echo "LD_LIBRARY_PATH=$ld_library_path $@"
LD_LIBRARY_PATH=$ld_library_path $@