blob: 1c1e4bc3ce4f3994ef306c97e6a1452e06d378f3 (
plain)
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
|
#!/bin/bash
# Include TEC_UNAME definitions
source tec_uname
# System paths
if [ -d /usr/lib64 ]; then
SYSTEM_LIB=/usr/lib64
else
SYSTEM_LIB=/usr/lib
fi
echo ' '
echo ' This script will install the >>Run Time<< libraries in the system'
echo ' from the build directories or from the unpacked download.'
echo ' It was tested in Ubuntu and in Fedora.'
echo ' '
echo ' Must be run with "sudo" at the library folder, or install will fail:'
echo ' sudo ./install'
echo ' '
EchoDownloadTip()
{
echo ' The downloaded package must already be unpacked in the current directory.'
echo ' Do NOT unpack different packages in the same directory.'
echo ' For example:'
echo ' mkdir iup'
echo ' cd iup'
echo ' tar -xpvzf ../iup-3.2_Linux26g4_lib.tar.gz'
echo ' '
}
Copy_RunTime_Extra_CD()
{
# Do NOT overwrite for FreeType
cp -fn $1libfreetype.so $SYSTEM_LIB
cp -fv $1libpdflib.so $SYSTEM_LIB
cp -fv $1libftgl.so $SYSTEM_LIB
}
Copy_RunTime_To_System()
{
cp -fv $2lib$1*.so $SYSTEM_LIB
if [ $1 == cd ]; then
Copy_RunTime_Extra_CD $2
fi
}
Install_RunTime()
{
if [ -d lib/$TEC_UNAME ]; then
echo ' Installing from build directory' lib/$TEC_UNAME
echo ' '
Pause
Copy_RunTime_To_System $1 lib/$TEC_UNAME/
else
echo ' The directory' lib/$TEC_UNAME 'was not found,'
echo ' so installing from unpacked download.'
echo ' '
EchoDownloadTip
Pause
Copy_RunTime_To_System $1
fi
}
ComputeTecUname
Install_RunTime im
|