-
Notifications
You must be signed in to change notification settings - Fork 3
/
LinuxSoLink
executable file
·71 lines (62 loc) · 2.14 KB
/
LinuxSoLink
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
ROOT=$(pwd)
esdkVMajor="3"
esdkVMinor="3"
esdkVPatch="0"
esdkVTweak="0"
vaCacheSO="3"
relMCastSO="1"
for dir in $(find $ROOT/Cpp-C/Eta/Libs -name Shared -type d)
do
cd $dir
# assume we have librsslVACache.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} which is not a link
if [ -f librsslVACache.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} ] && [ ! -h librsslVACache.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} ]
then
if [ ! -f librsslVACache.so.${vaCacheSO} ]
then ln -s librsslVACache.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} librsslVACache.so.${vaCacheSO}
else
if [ ! -h librsslVACache.so.${vaCacheSO} ]
then
rm -f librsslVACache.so.${vaCacheSO}
ln -s librsslVACache.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} librsslVACache.so.${vaCacheSO}
fi
fi
if [ ! -f librsslVACache.so ]
then ln -s librsslVACache.so.${vaCacheSO} librsslVACache.so
else
if [ ! -h librsslVACache.so ]
then
rm -f librsslVACache.so
ln -s librsslVACache.so.${vaCacheSO} librsslVACache.so
fi
fi
fi
done
for dir in $(find $ROOT/Cpp-C/Eta/Libs -name Shared -type d)
do
cd $dir
# assume we have librsslRelMcast.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} which is not a link
if [ -f librsslRelMcast.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} ] && [ ! -h librsslRelMcast.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} ]
then
if [ ! -f librsslRelMcast.so.${relMCastSO} ]
then ln -s librsslRelMcast.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} librsslRelMcast.so.${relMCastSO}
else
if [ ! -h librsslRelMcast.so.${relMCastSO} ]
then
rm -f librsslRelMcast.so.${relMCastSO}
ln -s librsslRelMcast.so.${esdkVMajor}.${esdkVMinor}.${esdkVPatch}.${esdkVTweak} librsslRelMcast.so.${relMCastSO}
fi
fi
if [ ! -f librsslRelMcast.so ]
then ln -s librsslRelMcast.so.${relMCastSO} librsslRelMcast.so
else
if [ ! -h librsslRelMcast.so ]
then
rm -f librsslRelMcast.so
ln -s librsslRelMcast.so.${relMCastSO} librsslRelMcast.so
fi
fi
fi
done
cd $ROOT
exit 0