#!/bin/sh
###
# Add /opt/qt4/lib Qt4 library to /etc/ld.so.conf
###

if [ -z "$(cat /etc/ld.so.conf | grep "/opt/qt4/lib")" ]; then
   echo "/opt/qt4/lib" >> /etc/ld.so.conf
fi
( cd opt/qt4/lib ; rm -rf libQtDesignerComponents.so.4 )
( cd opt/qt4/lib ; ln -sf libQtDesignerComponents.so.4.3.4 libQtDesignerComponents.so.4 )
( cd opt/qt4/lib ; rm -rf libQtXml.so.4 )
( cd opt/qt4/lib ; ln -sf libQtXml.so.4.3.4 libQtXml.so.4 )
( cd opt/qt4/lib ; rm -rf libQt3Support.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQt3Support.so.4.3.4 libQt3Support.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtTest.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtTest.so.4.3.4 libQtTest.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtSvg.so.4 )
( cd opt/qt4/lib ; ln -sf libQtSvg.so.4.3.4 libQtSvg.so.4 )
( cd opt/qt4/lib ; rm -rf libQtAssistantClient.so )
( cd opt/qt4/lib ; ln -sf libQtAssistantClient.so.4.3.4 libQtAssistantClient.so )
( cd opt/qt4/lib ; rm -rf libQtOpenGL.so.4 )
( cd opt/qt4/lib ; ln -sf libQtOpenGL.so.4.3.4 libQtOpenGL.so.4 )
( cd opt/qt4/lib ; rm -rf libQt3Support.so )
( cd opt/qt4/lib ; ln -sf libQt3Support.so.4.3.4 libQt3Support.so )
( cd opt/qt4/lib ; rm -rf libQtSql.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtSql.so.4.3.4 libQtSql.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtSvg.so )
( cd opt/qt4/lib ; ln -sf libQtSvg.so.4.3.4 libQtSvg.so )
( cd opt/qt4/lib ; rm -rf libQtNetwork.so.4 )
( cd opt/qt4/lib ; ln -sf libQtNetwork.so.4.3.4 libQtNetwork.so.4 )
( cd opt/qt4/lib ; rm -rf libQtXml.so )
( cd opt/qt4/lib ; ln -sf libQtXml.so.4.3.4 libQtXml.so )
( cd opt/qt4/lib ; rm -rf libQtScript.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtScript.so.4.3.4 libQtScript.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtScript.so )
( cd opt/qt4/lib ; ln -sf libQtScript.so.4.3.4 libQtScript.so )
( cd opt/qt4/lib ; rm -rf libQtCore.so )
( cd opt/qt4/lib ; ln -sf libQtCore.so.4.3.4 libQtCore.so )
( cd opt/qt4/lib ; rm -rf libQtDBus.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtDBus.so.4.3.4 libQtDBus.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtAssistantClient.so.4 )
( cd opt/qt4/lib ; ln -sf libQtAssistantClient.so.4.3.4 libQtAssistantClient.so.4 )
( cd opt/qt4/lib ; rm -rf libQtTest.so )
( cd opt/qt4/lib ; ln -sf libQtTest.so.4.3.4 libQtTest.so )
( cd opt/qt4/lib ; rm -rf libQtGui.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtGui.so.4.3.4 libQtGui.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtSql.so )
( cd opt/qt4/lib ; ln -sf libQtSql.so.4.3.4 libQtSql.so )
( cd opt/qt4/lib ; rm -rf libQtNetwork.so )
( cd opt/qt4/lib ; ln -sf libQtNetwork.so.4.3.4 libQtNetwork.so )
( cd opt/qt4/lib ; rm -rf libQt3Support.so.4 )
( cd opt/qt4/lib ; ln -sf libQt3Support.so.4.3.4 libQt3Support.so.4 )
( cd opt/qt4/lib ; rm -rf libQtDBus.so )
( cd opt/qt4/lib ; ln -sf libQtDBus.so.4.3.4 libQtDBus.so )
( cd opt/qt4/lib ; rm -rf libQtDesigner.so )
( cd opt/qt4/lib ; ln -sf libQtDesigner.so.4.3.4 libQtDesigner.so )
( cd opt/qt4/lib ; rm -rf libQtDBus.so.4 )
( cd opt/qt4/lib ; ln -sf libQtDBus.so.4.3.4 libQtDBus.so.4 )
( cd opt/qt4/lib ; rm -rf libQtCore.so.4 )
( cd opt/qt4/lib ; ln -sf libQtCore.so.4.3.4 libQtCore.so.4 )
( cd opt/qt4/lib ; rm -rf libQtDesigner.so.4 )
( cd opt/qt4/lib ; ln -sf libQtDesigner.so.4.3.4 libQtDesigner.so.4 )
( cd opt/qt4/lib ; rm -rf libQtGui.so.4 )
( cd opt/qt4/lib ; ln -sf libQtGui.so.4.3.4 libQtGui.so.4 )
( cd opt/qt4/lib ; rm -rf libQtSvg.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtSvg.so.4.3.4 libQtSvg.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtCore.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtCore.so.4.3.4 libQtCore.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtScript.so.4 )
( cd opt/qt4/lib ; ln -sf libQtScript.so.4.3.4 libQtScript.so.4 )
( cd opt/qt4/lib ; rm -rf libQtDesignerComponents.so )
( cd opt/qt4/lib ; ln -sf libQtDesignerComponents.so.4.3.4 libQtDesignerComponents.so )
( cd opt/qt4/lib ; rm -rf libQtOpenGL.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtOpenGL.so.4.3.4 libQtOpenGL.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtXml.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtXml.so.4.3.4 libQtXml.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtNetwork.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtNetwork.so.4.3.4 libQtNetwork.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtDesignerComponents.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtDesignerComponents.so.4.3.4 libQtDesignerComponents.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtDesigner.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtDesigner.so.4.3.4 libQtDesigner.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtGui.so )
( cd opt/qt4/lib ; ln -sf libQtGui.so.4.3.4 libQtGui.so )
( cd opt/qt4/lib ; rm -rf libQtOpenGL.so )
( cd opt/qt4/lib ; ln -sf libQtOpenGL.so.4.3.4 libQtOpenGL.so )
( cd opt/qt4/lib ; rm -rf libQtTest.so.4 )
( cd opt/qt4/lib ; ln -sf libQtTest.so.4.3.4 libQtTest.so.4 )
( cd opt/qt4/lib ; rm -rf libQtAssistantClient.so.4.3 )
( cd opt/qt4/lib ; ln -sf libQtAssistantClient.so.4.3.4 libQtAssistantClient.so.4.3 )
( cd opt/qt4/lib ; rm -rf libQtSql.so.4 )
( cd opt/qt4/lib ; ln -sf libQtSql.so.4.3.4 libQtSql.so.4 )
( cd opt/qt4/mkspecs ; rm -rf default )
( cd opt/qt4/mkspecs ; ln -sf linux-g++ default )
