updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / guikachu / guikachu.install
blobbbf686e2edbc1b827114d44f39892901c9b7b711
1 schemas=(
2   'opt/gnome/etc/gconf/schemas/guikachu-form-editor.schemas' 'opt/gnome/etc/gconf/schemas/guikachu-mainwin.schemas' 'opt/gnome/etc/gconf/schemas/guikachu-interface.schemas'
5 post_install() {
6   for schema in "${schemas[@]}" ; do
7     GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1
8   done
9   kill -s HUP `pidof /opt/gnome/bin/gconfd-2` > /dev/null 2>&1
10   echo "updating scrollkeeper catalogue ..."
11   scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
12   update-desktop-database > /dev/null 2>&1
13   update-mime-database > /dev/null 2>&1
16 post_upgrade() {
17   post_install $1
20 pre_remove() {
21   for schema in "${schemas[@]}" ; do
22     GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source` opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" > /dev/null 2>&1
23   done
24   echo "updating scrollkeeper catalogue ..."
25   kill -s HUP `pidof /opt/gnome/bin/gconfd-2` > /dev/null 2>&1
26   scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
27   update-desktop-database > /dev/null 2>&1
30 post_remove() {
31   echo "updating scrollkeeper catalogue ..."
32   scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
33   update-desktop-database > /dev/null 2>&1
34   update-mime-database > /dev/null 2>&1
37 op=$1
38 shift
40 $op $*