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

if [ -x /usr/bin/update-mime-database ]; then
  /usr/bin/update-mime-database usr/share/mime >/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 -f usr/share/icons/hicolor >/dev/null 2>&1
  fi
fi
( cd usr/share/doc/HTML/en/knights ; rm -rf common )
( cd usr/share/doc/HTML/en/knights ; ln -sf /usr/share/doc/HTML/en/common common )
( cd usr/share/doc/HTML/it/knights ; rm -rf common )
( cd usr/share/doc/HTML/it/knights ; ln -sf /usr/share/doc/HTML/it/common common )
( cd usr/share/doc/HTML/pt_BR/knights ; rm -rf common )
( cd usr/share/doc/HTML/pt_BR/knights ; ln -sf /usr/share/doc/HTML/pt_BR/common common )
( cd usr/share/doc/HTML/sv/knights ; rm -rf common )
( cd usr/share/doc/HTML/sv/knights ; ln -sf /usr/share/doc/HTML/sv/common common )
( cd usr/share/doc/HTML/pt/knights ; rm -rf common )
( cd usr/share/doc/HTML/pt/knights ; ln -sf /usr/share/doc/HTML/pt/common common )
( cd usr/share/doc/HTML/et/knights ; rm -rf common )
( cd usr/share/doc/HTML/et/knights ; ln -sf /usr/share/doc/HTML/et/common common )
( cd usr/share/doc/HTML/es/knights ; rm -rf common )
( cd usr/share/doc/HTML/es/knights ; ln -sf /usr/share/doc/HTML/es/common common )
( cd usr/share/doc/HTML/ru/knights ; rm -rf common )
( cd usr/share/doc/HTML/ru/knights ; ln -sf /usr/share/doc/HTML/ru/common common )
( cd usr/share/doc/HTML/uk/knights ; rm -rf common )
( cd usr/share/doc/HTML/uk/knights ; ln -sf /usr/share/doc/HTML/uk/common common )
( cd usr/share/doc/HTML/nl/knights ; rm -rf common )
( cd usr/share/doc/HTML/nl/knights ; ln -sf /usr/share/doc/HTML/nl/common common )
( cd usr/share/doc/HTML/de/knights ; rm -rf common )
( cd usr/share/doc/HTML/de/knights ; ln -sf /usr/share/doc/HTML/de/common common )
