forked from kkaempf/cmpi-bindings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·53 lines (42 loc) · 1.03 KB
/
install.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
#!/bin/sh
##
## Check usage
##
if [ "$#" != 1 ]; then
echo "Usage: $0 [op|sfcb]"
exit 1
fi
if [ "$1" != "op" -a "$1" != "sfcb" ]; then
echo "Usage: $0 [op|sfcb]"
exit 1
fi
##
## Install python provider infrastructure implementation.
##
PKGS=/usr/lib64/python2.5/site-packages
echo "cp ./build/swig/python/cmpi.py $PKGS"
cp ./build/swig/python/cmpi.py $PKGS
echo "cp ./swig/python/cim_provider.py $PKGS"
cp ./swig/python/cim_provider.py $PKGS
echo "cp ./swig/python/cmpi_pywbem_bindings.py $PKGS"
cp ./swig/python/cmpi_pywbem_bindings.py $PKGS
##
## Install provider shared library.
##
SO=./build/swig/python/libpyCmpiProvider.so
if [ ! -f "$SO" ]; then
echo "$0: no such file: $SO"
exit 1
fi
PEGASUS_PROVIDER_DIR=$PEGASUS_HOME/lib
if [ "$1" = "op" ]; then
if [ ! -d "$PEGASUS_PROVIDER_DIR" ]; then
echo "Please define PEGASUS_PROVIDER_DIR"
fi
echo "cp $SO $PEGASUS_PROVIDER_DIR"
cp $SO $PEGASUS_PROVIDER_DIR
fi
if [ "$1" = "sfcb" ]; then
echo "cp $SO /usr/lib64/"
cp $SO /usr/lib64/
fi