0
|
1 |
#!/bin/ksh93
|
|
2 |
#
|
|
3 |
# CDDL HEADER START
|
|
4 |
#
|
|
5 |
# The contents of this file are subject to the terms of the
|
|
6 |
# Common Development and Distribution License (the "License").
|
|
7 |
# You may not use this file except in compliance with the License.
|
|
8 |
#
|
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
# or http://www.opensolaris.org/os/licensing.
|
|
11 |
# See the License for the specific language governing permissions
|
|
12 |
# and limitations under the License.
|
|
13 |
#
|
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
#
|
|
20 |
# CDDL HEADER END
|
|
21 |
#
|
|
22 |
#
|
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
|
26 |
# ident "@(#)install-sfw 1.1 09/02/04 SMI"
|
|
27 |
|
|
28 |
# Stop at first error
|
|
29 |
set -o errexit
|
|
30 |
|
|
31 |
PREFIX=${ROOT}/usr
|
|
32 |
BINDIR=${PREFIX}/bin
|
|
33 |
LIBDIR=${PREFIX}/lib
|
|
34 |
INCLUDE_DIR=${PREFIX}/include
|
|
35 |
SHAREDIR=${PREFIX}/share
|
|
36 |
CIMPLE_INCLUDE_DIR=${PREFIX}/include/cimple
|
|
37 |
BREVITY_INCLUDE_DIR=${PREFIX}/include/brevity
|
|
38 |
MANDIR=${SHAREDIR}/man/man1
|
|
39 |
|
|
40 |
source ${SRC}/tools/install.subr
|
|
41 |
|
|
42 |
# BLDDIR is passed in from Makefile.sfw as environment variable
|
|
43 |
|
|
44 |
# install binaries/commands
|
|
45 |
|
|
46 |
CIMPLE_BIN_LIST="\
|
|
47 |
genclass \
|
|
48 |
genhnd \
|
|
49 |
genmak \
|
|
50 |
genmod \
|
|
51 |
genproj \
|
|
52 |
genprov \
|
|
53 |
regmod"
|
|
54 |
|
|
55 |
|
|
56 |
for i in ${CIMPLE_BIN_LIST}
|
|
57 |
do
|
|
58 |
_install E ${BLDDIR}/bin/${i} ${BINDIR}/${i} 555
|
|
59 |
done
|
|
60 |
|
|
61 |
|
|
62 |
# install libraries
|
|
63 |
|
|
64 |
CIMPLE_LIB_LIST="\
|
|
65 |
libcimple.so \
|
|
66 |
libcimplepegadap.so \
|
|
67 |
libcimplecmpiadap.so \
|
|
68 |
libbrevity.so"
|
|
69 |
|
|
70 |
for i in ${CIMPLE_LIB_LIST}
|
|
71 |
do
|
|
72 |
_install D ${BLDDIR}/lib/${i} ${LIBDIR}/${i} 555
|
|
73 |
done
|
|
74 |
|
|
75 |
|
|
76 |
# install Header files
|
|
77 |
|
|
78 |
CIMPLE_HEADER_LIST=" \
|
|
79 |
Arg.h \
|
|
80 |
Array.h \
|
|
81 |
Array_Impl.h \
|
|
82 |
Atomic.h \
|
|
83 |
Atomic_Counter.h \
|
|
84 |
Atomic_DARWIN_IX86_GNU.h \
|
|
85 |
Atomic_DARWIN_PPC_GNU.h \
|
|
86 |
Atomic_LINUX_IA64_GNU.h \
|
|
87 |
Atomic_LINUX_IX86_GNU.h \
|
|
88 |
Atomic_LINUX_PPC_GNU.h \
|
|
89 |
Atomic_LINUX_S390_GNU.h \
|
|
90 |
Atomic_SOLARIS_SPARC_GNU.h \
|
|
91 |
Atomic_SOLARIS_CC.h \
|
|
92 |
Atomic_SOLARIS_SPARC_CC.h \
|
|
93 |
Atomic_SOLARIS_IX86_CC.h \
|
|
94 |
Atomic_VXWORKS_XSCALE_GNU.h \
|
|
95 |
Atomic_WIN32_IX86_MSVC.h \
|
|
96 |
Auto_Mutex.h \
|
|
97 |
Buffer.h \
|
|
98 |
Cond.h \
|
|
99 |
Container.h \
|
|
100 |
Cond_Queue.h \
|
|
101 |
Datetime.h \
|
|
102 |
Error.h \
|
|
103 |
Exception.h \
|
|
104 |
File_Lock.h \
|
|
105 |
Instance.h \
|
|
106 |
Instance_Hnd.h \
|
|
107 |
Instance_Map.h \
|
|
108 |
Instance_Ref.h \
|
|
109 |
Magic.h \
|
|
110 |
Meta_Class.h \
|
|
111 |
Meta_Feature.h \
|
|
112 |
Meta_Method.h \
|
|
113 |
Meta_Property.h \
|
|
114 |
Meta_Qualifier.h \
|
|
115 |
Meta_Reference.h \
|
|
116 |
Meta_Repository.h \
|
|
117 |
Meta_Value.h \
|
|
118 |
Mutex.h \
|
|
119 |
Ops.h \
|
|
120 |
Property.h \
|
|
121 |
Provider.h \
|
|
122 |
Provider_Handle.h \
|
|
123 |
Ref.h \
|
|
124 |
Registration.h \
|
|
125 |
Stack.h \
|
|
126 |
String.h \
|
|
127 |
Strings.h \
|
|
128 |
TSD.h \
|
|
129 |
Thread.h \
|
|
130 |
Thread_Context.h \
|
|
131 |
Time.h \
|
|
132 |
Type.h \
|
|
133 |
Value.h \
|
|
134 |
boolean.h \
|
|
135 |
char16.h \
|
|
136 |
cimom.h \
|
|
137 |
cimple.h \
|
|
138 |
config.h \
|
|
139 |
flags.h \
|
|
140 |
flavor.h \
|
|
141 |
integer.h \
|
|
142 |
io.h \
|
|
143 |
linkage.h \
|
|
144 |
log.h \
|
|
145 |
octets.h \
|
|
146 |
options.h \
|
|
147 |
platform_DARWIN.h \
|
|
148 |
platform_LINUX.h \
|
|
149 |
platform_DARWIN_IX86_GNU.h \
|
|
150 |
platform_DARWIN_PPC_GNU.h \
|
|
151 |
platform_LINUX_IA64_GNU.h \
|
|
152 |
platform_LINUX_IX86_GNU.h \
|
|
153 |
platform_LINUX_PPC_GNU.h \
|
|
154 |
platform_LINUX_S390_GNU.h \
|
|
155 |
platform_LINUX_X86_64_GNU.h \
|
|
156 |
platform_SOLARIS_SPARC_GNU.h \
|
|
157 |
platform_SOLARIS_CC.h \
|
|
158 |
platform_SOLARIS_SPARC_CC.h \
|
|
159 |
platform_SOLARIS_SPARC_64_CC.h \
|
|
160 |
platform_SOLARIS_IX86_CC.h \
|
|
161 |
platform_SOLARIS_X86_64_CC.h \
|
|
162 |
platform_VXWORKS_XSCALE_GNU.h \
|
|
163 |
platform_VXWORKS_internal.h \
|
|
164 |
platform_WIN32_IX86_MSVC.h \
|
|
165 |
ptr_array.h \
|
|
166 |
real.h \
|
|
167 |
scope.h"
|
|
168 |
|
|
169 |
|
|
170 |
for i in ${CIMPLE_HEADER_LIST}
|
|
171 |
do
|
|
172 |
_install N ${BLDDIR}/src/cimple/${i} ${CIMPLE_INCLUDE_DIR}/${i} 444
|
|
173 |
done
|
|
174 |
|
|
175 |
BREVITY_HEADER_LIST="\
|
|
176 |
Client.h \
|
|
177 |
Instance_Enum.h \
|
|
178 |
Instance_Enum_Rep.h \
|
|
179 |
Instance_Name_Enum.h \
|
|
180 |
Instance_Name_Enum_Rep.h \
|
|
181 |
brevity.h \
|
|
182 |
defines.h \
|
|
183 |
linkage.h"
|
|
184 |
|
|
185 |
for i in ${BREVITY_HEADER_LIST}
|
|
186 |
do
|
|
187 |
_install N ${BLDDIR}/src/brevity/${i} ${BREVITY_INCLUDE_DIR}/${i} 444
|
|
188 |
done
|
|
189 |
|
|
190 |
|
|
191 |
# install Man pages
|
|
192 |
|
|
193 |
CIMPLE_MAN_LIST="\
|
|
194 |
genclass.1 \
|
|
195 |
genhnd.1 \
|
|
196 |
genmak.1 \
|
|
197 |
genmod.1 \
|
|
198 |
genproj.1 \
|
|
199 |
genprov.1 \
|
|
200 |
regmod.1"
|
|
201 |
|
|
202 |
for i in ${CIMPLE_MAN_LIST}
|
|
203 |
do
|
|
204 |
_install N ${i} ${MANDIR}/${i} 444
|
|
205 |
done
|
|
206 |
|
|
207 |
exit 0
|