if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  if [ -x /usr/bin/gtk-update-icon-cache ]; then
    /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi
( cd usr/bin ; rm -rf scite )
( cd usr/bin ; ln -sf SciTE scite )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEDirector.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEDirector.html SciTEDirector.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf ScriptLexer.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/ScriptLexer.html ScriptLexer.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEFAQ.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEFAQ.html SciTEFAQ.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTELexer.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTELexer.html SciTELexer.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEIco.png )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEIco.png SciTEIco.png )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEExternalLexer.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEExternalLexer.html SciTEExternalLexer.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEExtras.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEExtras.html SciTEExtras.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEImage.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEImage.html SciTEImage.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTELua.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTELua.html SciTELua.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEDownload.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEDownload.html SciTEDownload.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf PaneAPI.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/PaneAPI.html PaneAPI.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTE.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTE.html SciTE.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf CommandValues.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/CommandValues.html CommandValues.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEExtension.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEExtension.html SciTEExtension.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf PrintHi.png )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/PrintHi.png PrintHi.png )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTERegEx.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTERegEx.html SciTERegEx.html )
( cd usr/doc/scite-3.6.6/html ; rm -rf SciTEDoc.html )
( cd usr/doc/scite-3.6.6/html ; ln -sf /usr/share/scite/SciTEDoc.html SciTEDoc.html )
