4 XCOMM Fileset: CDE-SHLIBS
6 XCOMM @(#) $XConsortium: configShlibs.src /main/2 1996/04/21 19:14:20 drk $
9 XCOMM (c) Copyright Hewlett-Packard Company, 1993
14 XCOMM ############################################
26 while [ "$dirname" != "$CDE_TOP" ]
29 rmdir ${dirname##STAR/} >/dev/null 2>/dev/null
30 dirname=${dirname%/STAR}
35 #include "CDE-SHLIBS.list"
39 VerifyInstalledFiles()
41 echo "Status mode owner group filename"
42 echo "-----------------------------------------"
43 XCOMM exists correct correct correct /usr/dt/foo1
44 XCOMM MISSING WRONG WRONG WRONG /usr/dt/foo2
45 XCOMM exists the link is correct /usr/dt/link
49 #include "../verify.func"
51 #include "CDE-SHLIBS.lst"
55 #include "../option.func"
60 XCOMM Special treatment for CDE .so's that would otherwise overwrite
61 XCOMM sponsor-provided libraries.
65 for lib in $CDE_NEW_SHLIB
67 savedlib=/usr/shlib/$lib.preCDE
68 sharelib=/usr/shlib/$lib
69 cdelib=CDE_INSTALLATION_TOP/lib/$lib
71 echo " Creating symlink for $lib"
78 /bin/mv $sharelib $savedlib
80 /bin/ln -s -f $cdelib $sharelib
85 /bin/mv -f $sharelib $savedlib
86 /bin/ln -s $cdelib $sharelib
90 echo " Failed to symlink $lib"
101 XCOMM Restore the saved versions of libraries.
103 for lib in $CDE_NEW_SHLIB
105 savedlib=/usr/shlib/$lib.preCDE
106 newlib=/usr/shlib/$lib
108 echo " Restoring $lib"
115 /bin/mv -f $savedlib $newlib
116 elif [ -e /usr/shlib/$lib ]
118 echo " $newlib is not a symlink. Left alone."
120 /bin/mv -f $savedlib $newlib
128 XCOMM ##########################################################################
132 XCOMM ##########################################################################
137 CDE_TOP=CDE_INSTALLATION_TOP
138 CDE_CONF_TOP=CDE_CONFIGURATION_TOP
139 CDE_NEW_SHLIB="libXm.so libMrm.so"
143 if [ "$OPERATION" = "configure" ]
149 elif [ "$OPERATION" = "deconfigure" ]
158 elif [ "$OPERATION" = "verify" ]