postinst is in auctex 11.87-1ubuntu2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | #! /bin/bash
#
# postinst script for the Debian package auctex
#
# Copyright (C) 1997, 98, 99, 2000, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10,
# 11, 12 Davide G. M. Salvetti.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
#
# On Debian GNU/Linux System you can find a copy of the GNU General Public
# License in "/usr/share/common-licenses/GPL".
set -e
if [ -z "${DEBCONF_RECONFIGURE}" ]; then
for i in /usr/lib/emacs/common/auctex/auto/ /var/lib/emacs/auctex/; do
if [ -d ${i} ]; then
rm --recursive --force ${i}
fi
done
for i in /usr/lib/emacs/common/auctex /usr/lib/emacs/common; do
if [ -d ${i} ]; then
find ${i%/*} -name ${i##*/} -type d -empty \
| xargs --no-run-if-empty rmdir
fi
done
for f in 19 20 21; do
rm --force /usr/share/emacs${f}/site-lisp/preview/.nosearch
if [ -d /usr/share/emacs${f}/site-lisp/preview ]; then
rmdir --ignore-fail-on-non-empty \
/usr/share/emacs${f}/site-lisp/preview
fi
done
rm --force /var/log/auctex.log
rm --force /var/log/auctex-emacs.log
rm --force /usr/share/emacs/site-lisp/auctex/auto-loads.el~
for f in 21 22 23 -snapshot; do
dpkg-maintscript-helper rm_conffile \
/etc/emacs${f}/site-start.d/50auctex.el \
11.86-12~ auctex -- "${@}"
done
dpkg-maintscript-helper rm_conffile \
/etc/cron.weekly/auctex \
11.86-12~ auctex -- "${@}"
else
RUN_UPDATE_AUCTEX_ELISP=true
fi
source /usr/share/debconf/confmodule
db_version 2.0
db_get auctex/doauto || true
_db_doauto=${RET}
db_stop
# Automatically added by dh_installemacsen
if [ "$1" = "configure" ] && [ -x /usr/lib/emacsen-common/emacs-package-install ]
then
/usr/lib/emacsen-common/emacs-package-install auctex
fi
# End automatically added section
case "${1}" in
(triggered)
RUN_UPDATE_AUCTEX_ELISP=true
for trigger in ${2}; do
case "${trigger}" in
(auctex-install-*)
FLAVORS="${FLAVORS}${FLAVORS:+ }${trigger#auctex-install-}"
;;
(/*)
FLAVORS="${FLAVORS}${FLAVORS:+ }<all>"
;;
(*)
echo >&2 "${PROGNAME}:" \
"Unsupported trigger: ${trigger}"
exit 1
;;
esac
done
if fgrep '<all>' <(echo ${FLAVORS}) &>/dev/null; then
unset FLAVORS;
fi
;;
esac
if [ -n "${RUN_UPDATE_AUCTEX_ELISP}" ]; then
case "${_db_doauto}" in
(Foreground)
update-auctex-elisp ${FLAVORS}
;;
(Background)
update-auctex-elisp --daemon ${FLAVORS}
;;
(None)
:
;;
(*)
echo >&2 "${PROGNAME}:" \
"Unsupported Debconf doauto value: ${_db_doauto}"
exit 1
;;
esac
fi
exit 0
|