Statistics
| Revision:

root / branches / v2_0_0_prep / binaries / linux / crs / install.sh @ 26931

History | View | Annotate | Download (602 Bytes)

1
#!/bin/sh
2

    
3
VER=0.1.1
4
VER_1=0
5
VERPROJ=0.5.0
6
VERPROJ_1=0
7

    
8
srcDir=`dirname $0`
9
if [ -z "$1" ]
10
then {
11
	targetDir=$
12
} else {
13
	targetDir=.
14
}
15
fi
16

    
17
doLinks() {
18
	local src=$srcDir/$srcFile
19
	for alink in $links
20
	do
21
	{
22
		if [ -L $targetDir/$alink -o ! -e $targetDir/$alink ]; then
23
		{
24
			ln -sf $src $targetDir/$alink
25
		}
26
		fi
27
	}	
28
	done
29
	if [ -L $targetDir/$srcFile -o ! -e $targetDir/$srcFile ]; then
30
	{
31
		ln -sf $src $targetDir/$srcFile
32
	}
33
	fi
34
}
35

    
36

    
37
srcFile=libcrsjniproj.so.$VER
38
links="libcrsjniproj.so libcrsjniproj.so.$VER_1"
39
doLinks
40

    
41
srcFile=libproj.so.$VERPROJ
42
links="libproj.so libproj.so.$VERPROJ_1"
43
doLinks