echo "Qt4 nach /usr/lib/qt4 installiert"
echo "Zur Kompatiblitaet links nach /usr/lib/qt und /opt/qt4 gemacht,"
echo " altes qt nach qt0 verschoben, ggf in qt3 umbenennen"
echo "Potentiell gibt es Probleme da sowohl Qt3 als auch Qt4 nach qt installiert wd."
echo "Bei Bedarf manuell loesen"
sleep 10

mkdir -p /opt 2> /dev/null
mv -f /usr/lib/qt /usr/lib/qt0 2> /dev/null
ln -sf /usr/lib/qt4 /usr/lib/qt 
mv -f /opt/qt4 /opt/qt40 2> /dev/null
ln -sf /usr/lib/qt4 /opt/qt4 


#  links div. Programme und libs zu normalen Plaetzen

#
# link mit build-Nr nach qt4 machen:  
#( cd usr/lib ; rm -rf qt-r994599 )
#( cd usr/lib ; ln -sf qt4 qt-r994599 )


( cd usr/bin ; rm -rf qhelpgenerator )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qhelpgenerator qhelpgenerator )
( cd usr/bin ; rm -rf qtconfig )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qtconfig qtconfig )
( cd usr/bin ; rm -rf assistant )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/assistant assistant )
( cd usr/bin ; rm -rf qcollectiongenerator )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qcollectiongenerator qcollectiongenerator )
( cd usr/bin ; rm -rf pixeltool )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/pixeltool pixeltool )
( cd usr/bin ; rm -rf uic3 )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/uic3 uic3 )
( cd usr/bin ; rm -rf linguist )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/linguist linguist )
( cd usr/bin ; rm -rf qhelpconverter )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qhelpconverter qhelpconverter )
( cd usr/bin ; rm -rf qmake )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qmake qmake )
( cd usr/bin ; rm -rf qdbusxml2cpp )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qdbusxml2cpp qdbusxml2cpp )
( cd usr/bin ; rm -rf uic )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/uic uic )
( cd usr/bin ; rm -rf designer )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/designer designer )
( cd usr/bin ; rm -rf qdbus )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qdbus qdbus )
( cd usr/bin ; rm -rf qdbuscpp2xml )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qdbuscpp2xml qdbuscpp2xml )
( cd usr/bin ; rm -rf assistant_adp )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/assistant_adp assistant_adp )
( cd usr/bin ; rm -rf rcc )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/rcc rcc )
( cd usr/bin ; rm -rf qdbusviewer )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qdbusviewer qdbusviewer )
( cd usr/bin ; rm -rf lrelease )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/lrelease lrelease )
( cd usr/bin ; rm -rf moc )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/moc moc )
( cd usr/bin ; rm -rf lupdate )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/lupdate lupdate )
( cd usr/bin ; rm -rf qt3to4 )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/qt3to4 qt3to4 )
( cd usr/bin ; rm -rf xmlpatterns )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/xmlpatterns xmlpatterns )
( cd usr/bin ; rm -rf lconvert )
( cd usr/bin ; ln -sf /usr/lib/qt4/bin/lconvert lconvert )
( cd usr/lib ; rm -rf libQtDBus.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtDBus.so.4.5.1.debug libQtDBus.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtCLucene.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtCLucene.so.4.5.1 libQtCLucene.so.4.5.1 )
( cd usr/lib ; rm -rf libQtHelp.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtHelp.so.4 libQtHelp.so.4 )
( cd usr/lib ; rm -rf libQtTest.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtTest.so.4.5 libQtTest.so.4.5 )
( cd usr/lib ; rm -rf libQtWebKit.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtWebKit.so.4.5.1 libQtWebKit.so.4.5.1 )
( cd usr/lib ; rm -rf libQtCore.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtCore.so.4.5.1.debug libQtCore.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtXml.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtXml.so.4.5 libQtXml.so.4.5 )
( cd usr/lib ; rm -rf libQtScript.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtScript.so.4 libQtScript.so.4 )
( cd usr/lib ; rm -rf libQtCore.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtCore.la libQtCore.la )
( cd usr/lib ; rm -rf libQtDesignerComponents.so )
( cd usr/lib ; ln -sf qt4/lib/libQtDesignerComponents.so libQtDesignerComponents.so )
( cd usr/lib ; rm -rf libQtWebKit.so )
( cd usr/lib ; ln -sf qt4/lib/libQtWebKit.so libQtWebKit.so )
( cd usr/lib ; rm -rf libQtOpenGL.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtOpenGL.so.4 libQtOpenGL.so.4 )
( cd usr/lib ; rm -rf libQtDBus.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtDBus.la libQtDBus.la )
( cd usr/lib ; rm -rf libQtHelp.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtHelp.so.4.5.1.debug libQtHelp.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQt3Support.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQt3Support.so.4.5 libQt3Support.so.4.5 )
( cd usr/lib ; rm -rf libQtHelp.so )
( cd usr/lib ; ln -sf qt4/lib/libQtHelp.so libQtHelp.so )
( cd usr/lib ; rm -rf libQtHelp.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtHelp.so.4.5 libQtHelp.so.4.5 )
( cd usr/lib ; rm -rf libQtUiTools.a )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtUiTools.a libQtUiTools.a )
( cd usr/lib ; rm -rf libQtGui.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtGui.so.4 libQtGui.so.4 )
( cd usr/lib ; rm -rf libQtTest.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtTest.la libQtTest.la )
( cd usr/lib ; rm -rf libQtOpenGL.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtOpenGL.so.4.5 libQtOpenGL.so.4.5 )
( cd usr/lib ; rm -rf libQtDBus.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtDBus.so.4 libQtDBus.so.4 )
( cd usr/lib ; rm -rf libQtAssistantClient.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtAssistantClient.so.4.5.1 libQtAssistantClient.so.4.5.1 )
( cd usr/lib ; rm -rf libQt3Support.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQt3Support.so.4 libQt3Support.so.4 )
( cd usr/lib ; rm -rf libQtXml.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtXml.so.4.5.1 libQtXml.so.4.5.1 )
( cd usr/lib ; rm -rf libQtHelp.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtHelp.so.4.5.1 libQtHelp.so.4.5.1 )
( cd usr/lib ; rm -rf libQtDBus.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtDBus.so.4.5.1 libQtDBus.so.4.5.1 )
( cd usr/lib ; rm -rf libQtGui.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtGui.so.4.5.1.debug libQtGui.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtWebKit.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtWebKit.la libQtWebKit.la )
( cd usr/lib ; rm -rf libQtCLucene.so )
( cd usr/lib ; ln -sf qt4/lib/libQtCLucene.so libQtCLucene.so )
( cd usr/lib ; rm -rf libQtScriptTools.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtScriptTools.la libQtScriptTools.la )
( cd usr/lib ; rm -rf libQtSql.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtSql.so.4.5.1 libQtSql.so.4.5.1 )
( cd usr/lib ; rm -rf libQtNetwork.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtNetwork.so.4.5.1 libQtNetwork.so.4.5.1 )
( cd usr/lib ; rm -rf libQtGui.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtGui.so.4.5.1 libQtGui.so.4.5.1 )
( cd usr/lib ; rm -rf libQtScriptTools.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtScriptTools.so.4 libQtScriptTools.so.4 )
( cd usr/lib ; rm -rf libQtXml.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtXml.la libQtXml.la )
( cd usr/lib ; rm -rf libQtWebKit.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtWebKit.so.4 libQtWebKit.so.4 )
( cd usr/lib ; rm -rf libQtXmlPatterns.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtXmlPatterns.so.4.5.1 libQtXmlPatterns.so.4.5.1 )
( cd usr/lib ; rm -rf libQtOpenGL.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtOpenGL.so.4.5.1 libQtOpenGL.so.4.5.1 )
( cd usr/lib ; rm -rf libQtTest.so )
( cd usr/lib ; ln -sf qt4/lib/libQtTest.so libQtTest.so )
( cd usr/lib ; rm -rf libQtCLucene.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtCLucene.so.4.5.1.debug libQtCLucene.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtDBus.so )
( cd usr/lib ; ln -sf qt4/lib/libQtDBus.so libQtDBus.so )
( cd usr/lib ; rm -rf libQtSql.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtSql.so.4 libQtSql.so.4 )
( cd usr/lib ; rm -rf libQtScript.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtScript.so.4.5.1 libQtScript.so.4.5.1 )
( cd usr/lib ; rm -rf libQtAssistantClient.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtAssistantClient.so.4.5.1.debug libQtAssistantClient.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtSql.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtSql.so.4.5.1.debug libQtSql.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtOpenGL.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtOpenGL.la libQtOpenGL.la )
( cd usr/lib ; rm -rf libQtSvg.so )
( cd usr/lib ; ln -sf qt4/lib/libQtSvg.so libQtSvg.so )
( cd usr/lib ; rm -rf libQt3Support.so )
( cd usr/lib ; ln -sf qt4/lib/libQt3Support.so libQt3Support.so )
( cd usr/lib ; rm -rf libQtNetwork.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtNetwork.so.4.5.1.debug libQtNetwork.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtDesigner.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtDesigner.so.4 libQtDesigner.so.4 )
( cd usr/lib ; rm -rf libQtSql.so )
( cd usr/lib ; ln -sf qt4/lib/libQtSql.so libQtSql.so )
( cd usr/lib ; rm -rf libQtTest.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtTest.so.4 libQtTest.so.4 )
( cd usr/lib ; rm -rf libQtDesigner.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtDesigner.so.4.5.1.debug libQtDesigner.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtCore.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtCore.so.4.5.1 libQtCore.so.4.5.1 )
( cd usr/lib ; rm -rf libQtNetwork.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtNetwork.la libQtNetwork.la )
( cd usr/lib ; rm -rf libQtXmlPatterns.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtXmlPatterns.so.4 libQtXmlPatterns.so.4 )
( cd usr/lib ; rm -rf libQtAssistantClient.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtAssistantClient.so.4.5 libQtAssistantClient.so.4.5 )
( cd usr/lib ; rm -rf libQtScriptTools.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtScriptTools.so.4.5 libQtScriptTools.so.4.5 )
( cd usr/lib ; rm -rf libQtXmlPatterns.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtXmlPatterns.so.4.5 libQtXmlPatterns.so.4.5 )
( cd usr/lib ; rm -rf libQtOpenGL.so )
( cd usr/lib ; ln -sf qt4/lib/libQtOpenGL.so libQtOpenGL.so )
( cd usr/lib ; rm -rf libQtDesignerComponents.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtDesignerComponents.so.4 libQtDesignerComponents.so.4 )
( cd usr/lib ; rm -rf libQtSvg.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtSvg.so.4.5.1 libQtSvg.so.4.5.1 )
( cd usr/lib ; rm -rf libQtScriptTools.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtScriptTools.so.4.5.1 libQtScriptTools.so.4.5.1 )
( cd usr/lib ; rm -rf libQtCLucene.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtCLucene.so.4 libQtCLucene.so.4 )
( cd usr/lib ; rm -rf libQtTest.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtTest.so.4.5.1.debug libQtTest.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtScriptTools.so )
( cd usr/lib ; ln -sf qt4/lib/libQtScriptTools.so libQtScriptTools.so )
( cd usr/lib ; rm -rf libQtOpenGL.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtOpenGL.so.4.5.1.debug libQtOpenGL.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtXml.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtXml.so.4.5.1.debug libQtXml.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtScriptTools.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtScriptTools.so.4.5.1.debug libQtScriptTools.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtDesignerComponents.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtDesignerComponents.so.4.5 libQtDesignerComponents.so.4.5 )
( cd usr/lib ; rm -rf libQt3Support.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQt3Support.so.4.5.1 libQt3Support.so.4.5.1 )
( cd usr/lib ; rm -rf libQtTest.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtTest.so.4.5.1 libQtTest.so.4.5.1 )
( cd usr/lib ; rm -rf libQtScript.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtScript.so.4.5.1.debug libQtScript.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtNetwork.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtNetwork.so.4 libQtNetwork.so.4 )
( cd usr/lib ; rm -rf libQtGui.so )
( cd usr/lib ; ln -sf qt4/lib/libQtGui.so libQtGui.so )
( cd usr/lib ; rm -rf libQtSql.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtSql.so.4.5 libQtSql.so.4.5 )
( cd usr/lib ; rm -rf libQtDesignerComponents.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtDesignerComponents.so.4.5.1.debug libQtDesignerComponents.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtCLucene.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtCLucene.la libQtCLucene.la )
( cd usr/lib ; rm -rf libQtSvg.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtSvg.so.4 libQtSvg.so.4 )
( cd usr/lib ; rm -rf libQtNetwork.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtNetwork.so.4.5 libQtNetwork.so.4.5 )
( cd usr/lib ; rm -rf libQtXmlPatterns.so )
( cd usr/lib ; ln -sf qt4/lib/libQtXmlPatterns.so libQtXmlPatterns.so )
( cd usr/lib ; rm -rf libQtCore.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtCore.so.4.5 libQtCore.so.4.5 )
( cd usr/lib ; rm -rf libQtXml.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtXml.so.4 libQtXml.so.4 )
( cd usr/lib ; rm -rf libQtWebKit.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtWebKit.so.4.5 libQtWebKit.so.4.5 )
( cd usr/lib ; rm -rf libQtDesignerComponents.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtDesignerComponents.so.4.5.1 libQtDesignerComponents.so.4.5.1 )
( cd usr/lib ; rm -rf libQtCore.so )
( cd usr/lib ; ln -sf qt4/lib/libQtCore.so libQtCore.so )
( cd usr/lib ; rm -rf libQtSql.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtSql.la libQtSql.la )
( cd usr/lib ; rm -rf libQtAssistantClient.so )
( cd usr/lib ; ln -sf qt4/lib/libQtAssistantClient.so libQtAssistantClient.so )
( cd usr/lib ; rm -rf libQtAssistantClient.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtAssistantClient.so.4 libQtAssistantClient.so.4 )
( cd usr/lib ; rm -rf libQtXml.so )
( cd usr/lib ; ln -sf qt4/lib/libQtXml.so libQtXml.so )
( cd usr/lib ; rm -rf libQtDesigner.so.4.5.1 )
( cd usr/lib ; ln -sf qt4/lib/libQtDesigner.so.4.5.1 libQtDesigner.so.4.5.1 )
( cd usr/lib ; rm -rf libQtDesigner.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtDesigner.so.4.5 libQtDesigner.so.4.5 )
( cd usr/lib ; rm -rf libQtXmlPatterns.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtXmlPatterns.la libQtXmlPatterns.la )
( cd usr/lib ; rm -rf libQtNetwork.so )
( cd usr/lib ; ln -sf qt4/lib/libQtNetwork.so libQtNetwork.so )
( cd usr/lib ; rm -rf libQt3Support.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQt3Support.la libQt3Support.la )
( cd usr/lib ; rm -rf libQtSvg.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtSvg.so.4.5 libQtSvg.so.4.5 )
( cd usr/lib ; rm -rf libQtCore.so.4 )
( cd usr/lib ; ln -sf qt4/lib/libQtCore.so.4 libQtCore.so.4 )
( cd usr/lib ; rm -rf libQtSvg.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtSvg.la libQtSvg.la )
( cd usr/lib ; rm -rf libQtDBus.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtDBus.so.4.5 libQtDBus.so.4.5 )
( cd usr/lib ; rm -rf libQtCLucene.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtCLucene.so.4.5 libQtCLucene.so.4.5 )
( cd usr/lib ; rm -rf libQtScript.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtScript.so.4.5 libQtScript.so.4.5 )
( cd usr/lib ; rm -rf libQtDesigner.so )
( cd usr/lib ; ln -sf qt4/lib/libQtDesigner.so libQtDesigner.so )
( cd usr/lib ; rm -rf libQtGui.la )
( cd usr/lib ; ln -sf /usr/lib/qt4/lib/libQtGui.la libQtGui.la )
( cd usr/lib ; rm -rf libQtScript.so )
( cd usr/lib ; ln -sf qt4/lib/libQtScript.so libQtScript.so )
( cd usr/lib ; rm -rf libQtXmlPatterns.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtXmlPatterns.so.4.5.1.debug libQtXmlPatterns.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtSvg.so.4.5.1.debug )
( cd usr/lib ; ln -sf qt4/lib/libQtSvg.so.4.5.1.debug libQtSvg.so.4.5.1.debug )
( cd usr/lib ; rm -rf libQtGui.so.4.5 )
( cd usr/lib ; ln -sf qt4/lib/libQtGui.so.4.5 libQtGui.so.4.5 )


( cd usr/lib/pkgconfig ; rm -rf QtCore.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtCore.pc QtCore.pc )
( cd usr/lib/pkgconfig ; rm -rf QtAssistantClient.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtAssistantClient.pc QtAssistantClient.pc )
( cd usr/lib/pkgconfig ; rm -rf QTHelp.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTHelp.pc QTHelp.pc )
( cd usr/lib/pkgconfig ; rm -rf QtTest.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtTest.pc QtTest.pc )
( cd usr/lib/pkgconfig ; rm -rf QTDesigner.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTDesigner.pc QTDesigner.pc )
( cd usr/lib/pkgconfig ; rm -rf QtUiTools.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtUiTools.pc QtUiTools.pc )
( cd usr/lib/pkgconfig ; rm -rf QTWebKit.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTWebKit.pc QTWebKit.pc )
( cd usr/lib/pkgconfig ; rm -rf QTDesignerComponents.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTDesignerComponents.pc QTDesignerComponents.pc )
( cd usr/lib/pkgconfig ; rm -rf QtOpenGL.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtOpenGL.pc QtOpenGL.pc )
( cd usr/lib/pkgconfig ; rm -rf QTCore.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTCore.pc QTCore.pc )
( cd usr/lib/pkgconfig ; rm -rf Qt3Support.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/Qt3Support.pc Qt3Support.pc )
( cd usr/lib/pkgconfig ; rm -rf QtSql.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtSql.pc QtSql.pc )
( cd usr/lib/pkgconfig ; rm -rf QtSvg.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtSvg.pc QtSvg.pc )
( cd usr/lib/pkgconfig ; rm -rf QTScriptTools.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTScriptTools.pc QTScriptTools.pc )
( cd usr/lib/pkgconfig ; rm -rf QtGui.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtGui.pc QtGui.pc )
( cd usr/lib/pkgconfig ; rm -rf QtXml.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtXml.pc QtXml.pc )
( cd usr/lib/pkgconfig ; rm -rf QTXmlPatterns.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTXmlPatterns.pc QTXmlPatterns.pc )
( cd usr/lib/pkgconfig ; rm -rf QtScript.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtScript.pc QtScript.pc )
( cd usr/lib/pkgconfig ; rm -rf QtDBus.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtDBus.pc QtDBus.pc )
( cd usr/lib/pkgconfig ; rm -rf QTCLucene.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QTCLucene.pc QTCLucene.pc )
( cd usr/lib/pkgconfig ; rm -rf QtNetwork.pc )
( cd usr/lib/pkgconfig ; ln -sf /usr/lib/qt4/lib/pkgconfig/QtNetwork.pc QtNetwork.pc )


##



if [ -x sbin/ldconfig ]; then
  chroot . /sbin/ldconfig 2> /dev/null
fi

