( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDBus.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDBus.so.4.3.3 libQtDBus.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtSvg.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtSvg.so.4.3.3 libQtSvg.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtSvg.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtSvg.so.4.3.3 libQtSvg.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtXml.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtXml.so.4.3.3 libQtXml.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtTest.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtTest.so.4.3.3 libQtTest.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtNetwork.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtNetwork.so.4.3.3 libQtNetwork.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtSql.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtSql.so.4.3.3 libQtSql.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtScript.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtScript.so.4.3.3 libQtScript.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDesigner.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDesigner.so.4.3.3 libQtDesigner.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDBus.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDBus.so.4.3.3 libQtDBus.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtOpenGL.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtOpenGL.so.4.3.3 libQtOpenGL.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtSql.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtSql.so.4.3.3 libQtSql.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtTest.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtTest.so.4.3.3 libQtTest.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDesigner.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDesigner.so.4.3.3 libQtDesigner.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtAssistantClient.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtAssistantClient.so.4.3.3 libQtAssistantClient.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtXml.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtXml.so.4.3.3 libQtXml.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtGui.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtGui.so.4.3.3 libQtGui.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtTest.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtTest.so.4.3.3 libQtTest.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtGui.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtGui.so.4.3.3 libQtGui.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQt3Support.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQt3Support.so.4.3.3 libQt3Support.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDesigner.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDesigner.so.4.3.3 libQtDesigner.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtXml.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtXml.so.4.3.3 libQtXml.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtCore.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtCore.so.4.3.3 libQtCore.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDBus.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDBus.so.4.3.3 libQtDBus.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtGui.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtGui.so.4.3.3 libQtGui.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtNetwork.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtNetwork.so.4.3.3 libQtNetwork.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtSvg.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtSvg.so.4.3.3 libQtSvg.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtScript.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtScript.so.4.3.3 libQtScript.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQt3Support.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQt3Support.so.4.3.3 libQt3Support.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtSql.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtSql.so.4.3.3 libQtSql.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDesignerComponents.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDesignerComponents.so.4.3.3 libQtDesignerComponents.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtScript.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtScript.so.4.3.3 libQtScript.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtAssistantClient.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtAssistantClient.so.4.3.3 libQtAssistantClient.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDesignerComponents.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDesignerComponents.so.4.3.3 libQtDesignerComponents.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtCore.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtCore.so.4.3.3 libQtCore.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtAssistantClient.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtAssistantClient.so.4.3.3 libQtAssistantClient.so.4.3 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtCore.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtCore.so.4.3.3 libQtCore.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtOpenGL.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtOpenGL.so.4.3.3 libQtOpenGL.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtNetwork.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtNetwork.so.4.3.3 libQtNetwork.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtDesignerComponents.so )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtDesignerComponents.so.4.3.3 libQtDesignerComponents.so )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQt3Support.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQt3Support.so.4.3.3 libQt3Support.so.4 )
( cd usr/lib/qt-4.3.3/lib ; rm -rf libQtOpenGL.so.4 )
( cd usr/lib/qt-4.3.3/lib ; ln -sf libQtOpenGL.so.4.3.3 libQtOpenGL.so.4 )
( cd usr/lib/qt-4.3.3/mkspecs ; rm -rf default )
( cd usr/lib/qt-4.3.3/mkspecs ; ln -sf linux-g++ default )
( cd usr/lib ; rm -rf qt )
( cd usr/lib ; ln -sf qt-4.3.3 qt )
( cd usr/lib/pkgconfig ; rm -rf qt-mt.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt-4.3.3/lib/qt-mt.pc qt-mt.pc )
( cd usr/bin ; rm -rf uic-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/uic uic-qt4 )
( cd usr/bin ; rm -rf qt3to4-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/qt3to4 qt3to4-qt4 )
( cd usr/bin ; rm -rf lupdate-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/lupdate lupdate-qt4 )
( cd usr/bin ; rm -rf qdbusxml2cpp-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/qdbusxml2cpp qdbusxml2cpp-qt4 )
( cd usr/bin ; rm -rf qdbuscpp2xml-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/qdbuscpp2xml qdbuscpp2xml-qt4 )
( cd usr/bin ; rm -rf assistant-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/assistant assistant-qt4 )
( cd usr/bin ; rm -rf linguist-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/linguist linguist-qt4 )
( cd usr/bin ; rm -rf qdbusviewer-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/qdbusviewer qdbusviewer-qt4 )
( cd usr/bin ; rm -rf qtconfig-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/qtconfig qtconfig-qt4 )
( cd usr/bin ; rm -rf qmake-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/qmake qmake-qt4 )
( cd usr/bin ; rm -rf pixeltool-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/pixeltool pixeltool-qt4 )
( cd usr/bin ; rm -rf designer-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/designer designer-qt4 )
( cd usr/bin ; rm -rf rcc-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/rcc rcc-qt4 )
( cd usr/bin ; rm -rf qdbus-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/qdbus qdbus-qt4 )
( cd usr/bin ; rm -rf uic3-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/uic3 uic3-qt4 )
( cd usr/bin ; rm -rf moc-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/moc moc-qt4 )
( cd usr/bin ; rm -rf lrelease-qt4 )
( cd usr/bin ; ln -sf /usr/lib/qt-4.3.3/bin/lrelease lrelease-qt4 )

# 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
