post-install 514 B

12345678910111213141516
  1. if test -d "${rootdir}/lib/gio/modules"
  2. then
  3. echo "Updating GIO module(s) cache: gio-querymodules lib/gio/modules ..."
  4. chroot "$rootdir" /usr/bin/gio-querymodules lib/gio/modules 2> /dev/null
  5. fi
  6. echo "Updating GLIB schemas: glib-compile-schemas usr/local/share/glib* usr/share/glib*"
  7. for directory in usr/local/share/glib* usr/share/glib*
  8. do
  9. test -d "${rootdir}/$directory" || continue;
  10. chroot "$rootdir" /usr/bin/glib-compile-schemas "${directory}"/schemas 2> /dev/null
  11. done
  12. unset -v directory