infodir=/usr/share/info filelist=(jabber.info.gz) pkgname=emacs-jabber pre_upgrade() { /usr/sbin/gconfpkg --uninstall $pkgname } post_install() { /usr/sbin/gconfpkg --install $pkgname for file in ${filelist[@]}; do install-info $infodir/$file $infodir/dir 2> /dev/null done echo "Please add the following line to your .emacs." echo "(require 'jabber)" } post_upgrade() { post_install } pre_remove() { /usr/sbin/gconfpkg --uninstall $pkgname for file in ${filelist[@]}; do install-info --delete $infodir/$file $infodir/dir 2> /dev/null done }