mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
29 lines
719 B
Text
29 lines
719 B
Text
infodir=/usr/share/info
|
|
filelist=(auctex.info.gz preview-latex.info.gz)
|
|
|
|
post_install() {
|
|
post_upgrade $1
|
|
|
|
cat << EOF
|
|
==> For GNU Emacs, the recommended way to activate AUCTeX and preview-latex is to add the
|
|
==> following lines to your ~/.emacs file:
|
|
(load "auctex.el" nil t t)
|
|
(load "preview-latex.el" nil t t)
|
|
EOF
|
|
}
|
|
|
|
post_upgrade() {
|
|
[ -x usr/bin/install-info ] || return 0
|
|
for file in ${filelist[@]}; do
|
|
install-info $infodir/$file $infodir/dir 2> /dev/null
|
|
done
|
|
texconfig-sys rehash 2> /dev/null
|
|
}
|
|
|
|
pre_remove() {
|
|
[ -x usr/bin/install-info ] || return 0
|
|
for file in ${filelist[@]}; do
|
|
install-info --delete $infodir/$file $infodir/dir 2> /dev/null
|
|
done
|
|
texconfig-sys rehash 2> /dev/null
|
|
}
|