home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / install / postremove < prev    next >
Text File  |  1998-08-19  |  1KB  |  66 lines

  1. #ident    "@(#)pkg4.i386:i386/pkg/uccs/postremove    1.12"
  2. #-------
  3. #Set up localized messaging
  4. PKGMSG=${PKGINST}.pkg
  5. LOCALE=${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}
  6.  
  7. if [ ! -f /usr/lib/locale/${LOCALE}/LC_MESSAGES/${PKGMSG} ]
  8. then 
  9.     if [ -f ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} -a \
  10.         -d /usr/lib/locale/${LOCALE}/LC_MESSAGES ]
  11.     then
  12.         cp ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} \
  13.         /usr/lib/locale/${LOCALE}/LC_MESSAGES
  14.         
  15.         installf ${PKGINST} /usr/lib/locale/${LOCALE}/LC_MESSAGES
  16.     fi
  17. fi
  18. #
  19. # Take care of libcrypt.a
  20. #
  21. #-------
  22.  
  23. urel=`uname -r`
  24.  
  25. if [ $urel = "5" ]
  26. then
  27.     rm -f /usr/lib/libcrypt.a
  28.     if    [ -f /usr/lib/libcrypt_d.a ]
  29.     then
  30.         ln /usr/lib/libcrypt_d.a /usr/lib/libcrypt.a
  31.     fi
  32. else
  33.     # add on version
  34.     rm -f /udk/usr/lib/libcrypt.a
  35.     if    [ -f /udk/usr/lib/libcrypt_d.a ]
  36.     then
  37.         ln /udk/usr/lib/libcrypt_d.a /udk/usr/lib/libcrypt.a
  38.     fi
  39.     rm -f /usr/ccs/lib/libp/libc.so.1
  40.     exit 0
  41. fi
  42.  
  43. #-------
  44. #
  45. # Take care of /usr/lib/cpp.
  46. #
  47. #-------
  48.  
  49. if    [ -h /usr/lib/cpp -a ! -f /usr/ccs/lib/cpp ]
  50. then    rm -f /usr/lib/cpp
  51. fi
  52.  
  53. #-------
  54. #edit /etc/profile to remove PATH modification
  55. #-------
  56. if  grep "\*\*UNIXWARE CCS\*\*" /etc/profile >/dev/null
  57. then
  58. ed - /etc/profile <<Y
  59. g/\*\*UNIXWARE CCS\*\*/d
  60. w
  61. q
  62. Y
  63. fi
  64. exit 0
  65.  
  66.