updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / auctex-cvs / auctex.install
blob6acdfbc023c2cb3d7bd02b66faece94fd6d8e67f
1 infodir=/usr/share/info
2 filelist=(auctex.info.gz preview-latex.info.gz)
4 post_install() {
5 [ -x usr/bin/install-info ] || return 0
6   for file in ${filelist[@]}; do
7     install-info $infodir/$file $infodir/dir 2> /dev/null
8   done
9 cat << EOF
10 ==> For GNU Emacs, the recommended way to activate AUCTeX and preview-latex is to add the
11 ==> following lines to your ~/.emacs file:
12 (load "auctex.el" nil t t)
13 (load "preview-latex.el" nil t t)
14 EOF
15 texconfig-sys rehash
18 post_upgrade() {
19   post_install $1
22 pre_remove() {
23   [ -x usr/bin/install-info ] || return 0
24   for file in ${filelist[@]}; do
25     install-info --delete $infodir/$file $infodir/dir 2> /dev/null
26   done
27   texconfig-sys rehash