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 1> /dev/null 2> /dev/null
fi

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

( cd usr/share/gnome/help/ocrfeeder/de/figures ; rm -rf areas-edition.png )
( cd usr/share/gnome/help/ocrfeeder/de/figures ; ln -sf ../../C/figures/areas-edition.png areas-edition.png )
( cd usr/share/gnome/help/ocrfeeder/de/figures ; rm -rf content-areas.png )
( cd usr/share/gnome/help/ocrfeeder/de/figures ; ln -sf ../../C/figures/content-areas.png content-areas.png )
( cd usr/share/gnome/help/ocrfeeder/sl/figures ; rm -rf areas-edition.png )
( cd usr/share/gnome/help/ocrfeeder/sl/figures ; ln -sf ../../C/figures/areas-edition.png areas-edition.png )
( cd usr/share/gnome/help/ocrfeeder/sl/figures ; rm -rf content-areas.png )
( cd usr/share/gnome/help/ocrfeeder/sl/figures ; ln -sf ../../C/figures/content-areas.png content-areas.png )
( cd usr/share/gnome/help/ocrfeeder/es/figures ; rm -rf areas-edition.png )
( cd usr/share/gnome/help/ocrfeeder/es/figures ; ln -sf ../../C/figures/areas-edition.png areas-edition.png )
( cd usr/share/gnome/help/ocrfeeder/es/figures ; rm -rf content-areas.png )
( cd usr/share/gnome/help/ocrfeeder/es/figures ; ln -sf ../../C/figures/content-areas.png content-areas.png )
