--- wanderlust.install.orig 2014-05-17 00:19:50.026170542 +0200 +++ wanderlust.install 2014-05-17 00:21:23.596202508 +0200 @@ -1,3 +1,5 @@ +infodir=/usr/share/info + post_install () { cat << EOF ==> Put this in your $HOME/.emacs file to enable Wanderlust @@ -6,8 +8,15 @@ (autoload 'wl-other-frame "wl" "Wanderlust on new frame." t) (autoload 'wl-draft "wl-draft" "Write draft with Wanderlust." t) EOF + [ -x usr/bin/install-info ] || return 0 + install-info "$infodir/wl.info.gz" "$infodir/dir" } post_upgrade () { post_install $1 } + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + install-info --delete "$infodir/wl.info.gz" "$infodir/dir" +}