#!/bin/sh # # gtk-update - update gtk and pango configurations # VERSION="1.0" if [ "$1" = "-h" -o "$1" = "--help" ]; then echo "Usage: gtk-update [OPTION]..." echo "Update some GTK+ and Pango configuration files." echo echo " -h, --help print this help and exit" echo " -v, --version output version information and exit" echo echo "Report bugs ." exit fi if [ "$1" = "-v" -o "$1" = "--version" ]; then echo "gtk-update $VERSION" exit fi if [ ! -d /usr/etc/gtk-2.0 ]; then mkdir -p /usr/etc/gtk-2.0 fi if [ ! -d /usr/etc/pango ]; then mkdir -p /usr/etc/pango fi echo "updating gtk immodules..." if [ -x /usr/bin/gtk-query-immodules-2.0 ]; then /usr/bin/gtk-query-immodules-2.0 >/usr/etc/gtk-2.0/gtk.immodules fi echo "updating gdk-pixbuf loaders..." if [ -x /usr/bin/gdk-pixbuf-query-loaders ]; then /usr/bin/gdk-pixbuf-query-loaders >/usr/etc/gtk-2.0/gdk-pixbuf.loaders fi echo "updating pango modules..." if [ -x /usr/bin/pango-querymodules ]; then /usr/bin/pango-querymodules >/usr/etc/pango/pango.modules fi echo "all configurations updated." # EOF