( cd usr/bin ; rm -rf moc )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/moc moc )
( cd usr/bin ; rm -rf uic )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/uic uic )
( cd usr/bin ; rm -rf qm2ts )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/qm2ts qm2ts )
( cd usr/bin ; rm -rf qmake )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/qmake qmake )
( cd usr/bin ; rm -rf lrelease )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/lrelease lrelease )
( cd usr/bin ; rm -rf assistant )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/assistant assistant )
( cd usr/bin ; rm -rf lupdate )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/lupdate lupdate )
( cd usr/bin ; rm -rf qtconfig )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/qtconfig qtconfig )
( cd usr/bin ; rm -rf designer )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/designer designer )
( cd usr/bin ; rm -rf linguist )
( cd usr/bin ; ln -sf /usr/lib/qt/bin/linguist linguist )
( cd usr/doc/qt-3.3.3 ; rm -rf man )
( cd usr/doc/qt-3.3.3 ; ln -sf /usr/lib/qt-3.3.3/doc/man man )
( cd usr/doc/qt-3.3.3 ; rm -rf html )
( cd usr/doc/qt-3.3.3 ; ln -sf /usr/lib/qt-3.3.3/doc/html html )
( cd usr/doc/qt-3.3.3 ; rm -rf tutorial )
( cd usr/doc/qt-3.3.3 ; ln -sf /usr/lib/qt-3.3.3/tutorial tutorial )
( cd usr/doc/qt-3.3.3 ; rm -rf examples )
( cd usr/doc/qt-3.3.3 ; ln -sf /usr/lib/qt-3.3.3/examples examples )
( cd usr/lib ; rm -rf qt )
( cd usr/lib ; ln -sf qt-3.3.3 qt )
( cd usr/lib/qt-3.3.3/lib ; rm -rf libqt-mt.so.3 )
( cd usr/lib/qt-3.3.3/lib ; ln -sf libqt-mt.so.3.3.3 libqt-mt.so.3 )
( cd usr/lib/qt-3.3.3/lib ; rm -rf libqui.so )
( cd usr/lib/qt-3.3.3/lib ; ln -sf libqui.so.1.0.0 libqui.so )
( cd usr/lib/qt-3.3.3/lib ; rm -rf libqui.so.1 )
( cd usr/lib/qt-3.3.3/lib ; ln -sf libqui.so.1.0.0 libqui.so.1 )
( cd usr/lib/qt-3.3.3/lib ; rm -rf libqt-mt.so )
( cd usr/lib/qt-3.3.3/lib ; ln -sf libqt-mt.so.3.3.3 libqt-mt.so )
( cd usr/lib/qt-3.3.3/lib ; rm -rf libqui.so.1.0 )
( cd usr/lib/qt-3.3.3/lib ; ln -sf libqui.so.1.0.0 libqui.so.1.0 )
( cd usr/lib/qt-3.3.3/lib ; rm -rf libqt-mt.so.3.3 )
( cd usr/lib/qt-3.3.3/lib ; ln -sf libqt-mt.so.3.3.3 libqt-mt.so.3.3 )
( cd usr/lib/qt-3.3.3/mkspecs ; rm -rf default )
( cd usr/lib/qt-3.3.3/mkspecs ; ln -sf linux-g++ default )

# Add QT library directory to /etc/ld.so.conf:
if fgrep /usr/lib/qt/lib etc/ld.so.conf 1> /dev/null 2> /dev/null ; then
  true
else
  echo "/usr/lib/qt/lib" >> etc/ld.so.conf
fi
if [ -x /sbin/ldconfig ]; then
  /sbin/ldconfig 2> /dev/null
fi
