updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / emacs-bbdb-git / emacs-bbdb-git.install
blob23a7a4d319b86c09e1fad186cae97be4698aec06
1 tex_update() {
2     if [[ "$(which mktexlsr &>/dev/null)" ]]; then
3         echo "Updating TeX package database..."
4         mktexlsr
5     fi
8 version_warning() {
9     echo
10     echo "BBDB version 3 is significantly different from version 2."
11     echo "You probably want to check the [[wiki]] for advice on upgrading."
12     echo "Back up your address database before loading the new version."
13     echo
14     echo "    [wiki]: http://www.emacswiki.org/emacs/BbdbMode"
17 post_install() {
18     tex_update
19     version_warning
20     install-info /usr/share/info/bbdb.info.gz /usr/share/info/dir 2>/dev/null
23 post_upgrade () {
24     tex_update
25     install-info /usr/share/info/bbdb.info.gz /usr/share/info/dir 2>/dev/null
28 post_remove () {
29     echo "Updating TeX package database..."
30     mktexlsr
31     install-info --delete /usr/share/info/bbdb.info.gz /usr/share/info/dir 2>/dev/null