# Add QT library directory to /etc/ld.so.conf:
if ! grep /usr/lib64/qt/lib etc/ld.so.conf 1> /dev/null 2> /dev/null ; then
  echo "/usr/lib64/qt/lib" >> etc/ld.so.conf
fi
if [ -x /sbin/ldconfig ]; then
  /sbin/ldconfig 2> /dev/null
fi
( cd usr/lib64/qt-3.3.8b/mkspecs/linux-g++-64 ; rm -rf linux-g++-64 )
( cd usr/lib64/qt-3.3.8b/mkspecs/linux-g++-64 ; ln -sf /usr/lib64/qt/mkspecs/linux-g++-64 linux-g++-64 )
( cd usr/lib64/qt-3.3.8b/mkspecs ; rm -rf default )
( cd usr/lib64/qt-3.3.8b/mkspecs ; ln -sf linux-g++-64 default )
( cd usr/lib64/qt-3.3.8b/lib ; rm -rf libqt-mt.so )
( cd usr/lib64/qt-3.3.8b/lib ; ln -sf libqt-mt.so.3.3.8 libqt-mt.so )
( cd usr/lib64/qt-3.3.8b/lib ; rm -rf libqt-mt.so.3 )
( cd usr/lib64/qt-3.3.8b/lib ; ln -sf libqt-mt.so.3.3.8 libqt-mt.so.3 )
( cd usr/lib64/qt-3.3.8b/lib ; rm -rf libqt-mt.so.3.3 )
( cd usr/lib64/qt-3.3.8b/lib ; ln -sf libqt-mt.so.3.3.8 libqt-mt.so.3.3 )
( cd usr/lib64/qt-3.3.8b/lib ; rm -rf libqui.so )
( cd usr/lib64/qt-3.3.8b/lib ; ln -sf libqui.so.1.0.0 libqui.so )
( cd usr/lib64/qt-3.3.8b/lib ; rm -rf libqui.so.1 )
( cd usr/lib64/qt-3.3.8b/lib ; ln -sf libqui.so.1.0.0 libqui.so.1 )
( cd usr/lib64/qt-3.3.8b/lib ; rm -rf libqui.so.1.0 )
( cd usr/lib64/qt-3.3.8b/lib ; ln -sf libqui.so.1.0.0 libqui.so.1.0 )
( cd usr/lib64/qt-3.3.8b ; rm -rf lib64 )
( cd usr/lib64/qt-3.3.8b ; ln -sf lib lib64 )
( cd usr/lib64 ; rm -rf qt )
( cd usr/lib64 ; ln -sf qt-3.3.8b qt )
( cd usr/lib64 ; rm -rf libqt-mt.so )
( cd usr/lib64 ; ln -sf qt/lib/libqt-mt.so libqt-mt.so )
( cd usr/lib64 ; rm -rf libqt-mt.so.3 )
( cd usr/lib64 ; ln -sf qt/lib/libqt-mt.so.3 libqt-mt.so.3 )
( cd usr/lib64 ; rm -rf libqt-mt.so.3.3 )
( cd usr/lib64 ; ln -sf qt/lib/libqt-mt.so.3.3 libqt-mt.so.3.3 )
( cd usr/lib64 ; rm -rf libqt-mt.so.3.3.8 )
( cd usr/lib64 ; ln -sf qt/lib/libqt-mt.so.3.3.8 libqt-mt.so.3.3.8 )
( cd usr/lib64 ; rm -rf libqui.so )
( cd usr/lib64 ; ln -sf qt/lib/libqui.so libqui.so )
( cd usr/lib64 ; rm -rf libqui.so.1 )
( cd usr/lib64 ; ln -sf qt/lib/libqui.so.1 libqui.so.1 )
( cd usr/lib64 ; rm -rf libqui.so.1.0 )
( cd usr/lib64 ; ln -sf qt/lib/libqui.so.1.0 libqui.so.1.0 )
( cd usr/lib64 ; rm -rf libqui.so.1.0.0 )
( cd usr/lib64 ; ln -sf qt/lib/libqui.so.1.0.0 libqui.so.1.0.0 )
( cd usr/lib64/pkgconfig ; rm -rf qt-mt.pc )
( cd usr/lib64/pkgconfig ; ln -sf /usr/lib64/qt-3.3.8b/lib/pkgconfig/qt-mt.pc qt-mt.pc )
( cd usr/bin ; rm -rf assistant )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/assistant assistant )
( cd usr/bin ; rm -rf designer )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/designer designer )
( cd usr/bin ; rm -rf linguist )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/linguist linguist )
( cd usr/bin ; rm -rf lrelease )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/lrelease lrelease )
( cd usr/bin ; rm -rf lupdate )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/lupdate lupdate )
( cd usr/bin ; rm -rf moc )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/moc moc )
( cd usr/bin ; rm -rf qm2ts )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/qm2ts qm2ts )
( cd usr/bin ; rm -rf qmake )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/qmake qmake )
( cd usr/bin ; rm -rf qtconfig )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/qtconfig qtconfig )
( cd usr/bin ; rm -rf uic )
( cd usr/bin ; ln -sf /usr/lib64/qt/bin/uic uic )
( cd usr/doc/qt-3.3.8b ; rm -rf html )
( cd usr/doc/qt-3.3.8b ; ln -sf /usr/lib64/qt-3.3.8b/doc/html html )
