#!/bin/sh
# Add the LessTif stuff to host.def if it isn't already there:
mkdir -p usr/lib64/X11/config
touch usr/lib64/X11/config/host.def
if ! grep LessTif usr/lib64/X11/config/host.def 1> /dev/null 2> /dev/null ; then
  cat usr/lib64/LessTif/config/host.def >> usr/lib64/X11/config/host.def
fi
# Standard symlink creation section begins:
( cd usr/lib64 ; rm -rf libXm.so.2 )
( cd usr/lib64 ; ln -sf libXm.so.2.0.1 libXm.so.2 )
( cd usr/lib64 ; rm -rf libXm.so )
( cd usr/lib64 ; ln -sf libXm.so.2.0.1 libXm.so )
( cd usr/lib64 ; rm -rf libMrm.so.2 )
( cd usr/lib64 ; ln -sf libMrm.so.2.0.1 libMrm.so.2 )
( cd usr/lib64 ; rm -rf libMrm.so )
( cd usr/lib64 ; ln -sf libMrm.so.2.0.1 libMrm.so )
( cd usr/lib64 ; rm -rf libUil.so.2 )
( cd usr/lib64 ; ln -sf libUil.so.2.0.1 libUil.so.2 )
( cd usr/lib64 ; rm -rf libUil.so )
( cd usr/lib64 ; ln -sf libUil.so.2.0.1 libUil.so )
( cd usr/lib64 ; rm -rf libDtPrint.so.1 )
( cd usr/lib64 ; ln -sf libDtPrint.so.1.0.0 libDtPrint.so.1 )
( cd usr/lib64 ; rm -rf libDtPrint.so )
( cd usr/lib64 ; ln -sf libDtPrint.so.1.0.0 libDtPrint.so )
( cd usr/lib64/X11 ; rm -rf mwm )
( cd usr/lib64/X11 ; ln -sf ../../../etc/X11/mwm mwm )
( cd usr/doc/lesstif-0.95.0 ; rm -rf Lessdox )
( cd usr/doc/lesstif-0.95.0 ; ln -sf html Lessdox )
