6 # $XConsortium: configShlibs /main/5 1996/06/13 15:47:42 drk $
9 # (c) Copyright 1996 Digital Equipment Corporation.
10 # (c) Copyright 1995,1996 Hewlett-Packard Company.
11 # (c) Copyright 1996 International Business Machines Corp.
12 # (c) Copyright 1996 Sun Microsystems, Inc.
13 # (c) Copyright 1996 Novell, Inc.
14 # (c) Copyright 1996 FUJITSU LIMITED.
15 # (c) Copyright 1996 Hitachi.
27 echo "$PROG_NAME: $1.$2 does not exist."
28 echo " A symbolic link for this shared library will NOT be created."
34 if [ -d /usr/dt/lib ]; then
38 CreateOneLink libDtHelp.sl 2.1
39 CreateOneLink libDtPrint.sl 2.1
40 CreateOneLink libDtMrm.sl 2.1
41 CreateOneLink libDtSvc.sl 2.1
42 CreateOneLink libDtWidget.sl 2.1
43 CreateOneLink libDtTerm.sl 2.1
44 CreateOneLink libtt.sl 2.1
45 CreateOneLink libcsa.sl 2.1
46 CreateOneLink libDtSearch.sl 2.1
47 CreateOneLink libDtMmdb.sl 2.1
50 echo "$PROG_NAME: /usr/dt/lib does not exist. Symbolic"
51 echo " links for the shared libraries will NOT be created."
55 VerifyInstalledFiles()
57 echo "Status mode owner group filename"
58 echo "-----------------------------------------"
59 # exists correct correct correct /usr/dt/foo1
60 # MISSING WRONG WRONG WRONG /usr/dt/foo2
61 # exists the link is correct /usr/dt/link
68 if [ "${tokens[3]}" = "file" ]
70 if [ -f ${tokens[0]} ]
74 echo "MISSING or REMOVED \c"
78 elif [ "${tokens[3]}" = "sym_link" ]
80 if [ -L ${tokens[0]} ]
84 echo "MISSING or REMOVED \c"
90 if [ "${tokens[3]}" = "file" ]
92 touch /tmp/config-test
93 chmod ${tokens[1]} /tmp/config-test
94 tmpperms=`ls -l /tmp/config-test | awk '{print $1}'`
95 realperms=`ls -l ${tokens[0]} | awk '{print $1}'`
97 if [ "$tmpperms" = "$realperms" ]
104 owner=`ls -l ${tokens[0]} | awk '{print $3}'`
106 if [ "$owner" = "${tokens[4]}" ]
113 group=`ls -l ${tokens[0]} | awk '{print $4}'`
115 if [ "$group" = "${tokens[5]}" ]
121 elif [ "${tokens[3]}" = "sym_link" ]
123 linkto=`ls -l ${tokens[0]} | awk '{print $11}'`
124 if [ "${tokens[2]}" = "$linkto" ]
126 echo " the link is correct \c"
128 echo " the link is WRONG \c"
134 /usr 0555 directory bin bin ------ 378 cde_dt
135 /usr/dt 0555 directory bin bin ------ 378 cde_dt
136 /usr/dt/lib 0555 directory bin bin ------ 378 cde_dt
137 /usr/dt/lib/libDtHelp.sl 0555 lib/DtHelp/libDtHelp.sl file bin bin di---- 378 cde_dt
138 /usr/dt/lib/libDtPrint.sl 0555 lib/DtPrint/libDtPrint.sl file bin bin di---- 378 cde_dt
139 /usr/dt/lib/libDtMrm.sl 0555 lib/DtMrm/libDtMrm.sl file bin bin di---- 378 cde_dt
140 /usr/dt/lib/libDtSvc.sl 0555 lib/DtSvc/libDtSvc.sl file bin bin di---- 378 cde_dt
141 /usr/dt/lib/libDtWidget.sl 0555 lib/DtWidget/libDtWidget.sl file bin bin di---- 378 cde_dt
142 /usr/dt/lib/libDtTerm.sl 0555 lib/DtTerm/libDtTerm.sl file bin bin di---- 378 cde_dt
143 /usr/dt/lib/libtt.sl 0555 lib/tt/lib/libtt.sl file bin bin di---- 378 cde_dt
144 /usr/dt/lib/libcsa.sl 0555 lib/csa/libcsa.sl file bin bin di---- 378 cde_dt
145 /usr/dt/lib/libDtSearch.sl 0555 lib/DtSearch/libDtSearch.sl file bin bin di---- 378 cde_dt
146 /usr/dt/lib/libDtMmdb.sl 0555 lib/DtMmdb/libDtMmdb.sl file bin bin di---- 378 cde_dt
155 echo "Size\t\tfilename"
156 echo "-----------------------------------------"
163 if [ "${tokens[3]}" = "file" ]
165 if [ -f ${tokens[0]} ]
167 filesize=`ls -l ${tokens[0]} | awk '{print $5}'`
168 echo "$filesize\t\t\c"
170 let total=total+filesize
175 /usr 0555 directory bin bin ------ 378 cde_dt
176 /usr/dt 0555 directory bin bin ------ 378 cde_dt
177 /usr/dt/lib 0555 directory bin bin ------ 378 cde_dt
178 /usr/dt/lib/libDtHelp.sl 0555 lib/DtHelp/libDtHelp.sl file bin bin di---- 378 cde_dt
179 /usr/dt/lib/libDtPrint.sl 0555 lib/DtPrint/libDtPrint.sl file bin bin di---- 378 cde_dt
180 /usr/dt/lib/libDtMrm.sl 0555 lib/DtMrm/libDtMrm.sl file bin bin di---- 378 cde_dt
181 /usr/dt/lib/libDtSvc.sl 0555 lib/DtSvc/libDtSvc.sl file bin bin di---- 378 cde_dt
182 /usr/dt/lib/libDtWidget.sl 0555 lib/DtWidget/libDtWidget.sl file bin bin di---- 378 cde_dt
183 /usr/dt/lib/libDtTerm.sl 0555 lib/DtTerm/libDtTerm.sl file bin bin di---- 378 cde_dt
184 /usr/dt/lib/libtt.sl 0555 lib/tt/lib/libtt.sl file bin bin di---- 378 cde_dt
185 /usr/dt/lib/libcsa.sl 0555 lib/csa/libcsa.sl file bin bin di---- 378 cde_dt
186 /usr/dt/lib/libDtSearch.sl 0555 lib/DtSearch/libDtSearch.sl file bin bin di---- 378 cde_dt
187 /usr/dt/lib/libDtMmdb.sl 0555 lib/DtMmdb/libDtMmdb.sl file bin bin di---- 378 cde_dt
189 echo "Total fileset size is $total"
193 while [ $# -ne 0 ]; do
195 -e) OPERATION="configure"
198 -d) OPERATION="deconfigure"
201 -v) OPERATION="verify"
211 #################################################################
215 #################################################################
222 if [ "$OPERATION" = "configure" ]
225 echo "Configuring for CDE-SHLIBS"
229 elif [ "$OPERATION" = "deconfigure" ]
232 echo "de-Configuring CDE-SHLIBS NOT supported!"
234 elif [ "$OPERATION" = "verify" ]
239 elif [ "$OPERATION" = "size" ]