if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database /usr/share/mime &> /dev/null
fi

if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database &> /dev/null
fi

if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache  -f -q /usr/share/icons/hicolor &> /dev/null
fi

( cd usr/lib ; rm -rf libkdevplatformdocumentation.so.2 )
( cd usr/lib ; ln -sf libkdevplatformdocumentation.so.2.0.0 libkdevplatformdocumentation.so.2 )
( cd usr/lib ; rm -rf libkdevplatformtests.so.2 )
( cd usr/lib ; ln -sf libkdevplatformtests.so.2.0.0 libkdevplatformtests.so.2 )
( cd usr/lib ; rm -rf libkdevplatformlanguage.so.2 )
( cd usr/lib ; ln -sf libkdevplatformlanguage.so.2.0.0 libkdevplatformlanguage.so.2 )
( cd usr/lib ; rm -rf libsublime.so )
( cd usr/lib ; ln -sf libsublime.so.2 libsublime.so )
( cd usr/lib ; rm -rf libkdevplatformutil.so )
( cd usr/lib ; ln -sf libkdevplatformutil.so.2 libkdevplatformutil.so )
( cd usr/lib ; rm -rf libkdevplatformdebugger.so )
( cd usr/lib ; ln -sf libkdevplatformdebugger.so.2 libkdevplatformdebugger.so )
( cd usr/lib ; rm -rf libkdevplatformtests.so )
( cd usr/lib ; ln -sf libkdevplatformtests.so.2 libkdevplatformtests.so )
( cd usr/lib ; rm -rf libkdevplatforminterfaces.so.2 )
( cd usr/lib ; ln -sf libkdevplatforminterfaces.so.2.0.0 libkdevplatforminterfaces.so.2 )
( cd usr/lib ; rm -rf libkdevplatformoutputview.so.2 )
( cd usr/lib ; ln -sf libkdevplatformoutputview.so.2.0.0 libkdevplatformoutputview.so.2 )
( cd usr/lib ; rm -rf libkdevplatformshell.so.2 )
( cd usr/lib ; ln -sf libkdevplatformshell.so.2.0.0 libkdevplatformshell.so.2 )
( cd usr/lib ; rm -rf libkdevplatformvcs.so.2 )
( cd usr/lib ; ln -sf libkdevplatformvcs.so.2.0.0 libkdevplatformvcs.so.2 )
( cd usr/lib ; rm -rf libkdevplatformdebugger.so.2 )
( cd usr/lib ; ln -sf libkdevplatformdebugger.so.2.0.0 libkdevplatformdebugger.so.2 )
( cd usr/lib ; rm -rf libkdevplatforminterfaces.so )
( cd usr/lib ; ln -sf libkdevplatforminterfaces.so.2 libkdevplatforminterfaces.so )
( cd usr/lib ; rm -rf libsublime.so.2 )
( cd usr/lib ; ln -sf libsublime.so.2.0.0 libsublime.so.2 )
( cd usr/lib ; rm -rf libkdevplatformproject.so.2 )
( cd usr/lib ; ln -sf libkdevplatformproject.so.2.0.0 libkdevplatformproject.so.2 )
( cd usr/lib ; rm -rf libkdevplatformdocumentation.so )
( cd usr/lib ; ln -sf libkdevplatformdocumentation.so.2 libkdevplatformdocumentation.so )
( cd usr/lib ; rm -rf libkdevplatformvcs.so )
( cd usr/lib ; ln -sf libkdevplatformvcs.so.2 libkdevplatformvcs.so )
( cd usr/lib ; rm -rf libkdevplatformproject.so )
( cd usr/lib ; ln -sf libkdevplatformproject.so.2 libkdevplatformproject.so )
( cd usr/lib ; rm -rf libkdevplatformoutputview.so )
( cd usr/lib ; ln -sf libkdevplatformoutputview.so.2 libkdevplatformoutputview.so )
( cd usr/lib ; rm -rf libkdevplatformlanguage.so )
( cd usr/lib ; ln -sf libkdevplatformlanguage.so.2 libkdevplatformlanguage.so )
( cd usr/lib ; rm -rf libkdevplatformshell.so )
( cd usr/lib ; ln -sf libkdevplatformshell.so.2 libkdevplatformshell.so )
( cd usr/lib ; rm -rf libkdevplatformutil.so.2 )
( cd usr/lib ; ln -sf libkdevplatformutil.so.2.0.0 libkdevplatformutil.so.2 )
