postinst is in texlive-binaries 2013.20130729.30972-2ubuntu0.1.
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 | #!/bin/sh -e
# texlive-binaries postinst, created 2008 by Frank K�ster
# probably not copyrightable as it looks now, but anyway the code maybe
# freely copied, distributed and/or modified
# activate the xdvi.bin alternative
case "$1" in
configure|reconfigure)
update-alternatives --install /usr/bin/xdvi.bin xdvi.bin /usr/bin/xdvi-xaw 30
update-alternatives --install /usr/bin/bibtex bibtex \
/usr/bin/bibtex.original 100 \
--slave /usr/share/man/man1/bibtex.1.gz bibtex.1.gz \
/usr/share/man/man1/bibtex.original.1.gz
;;
esac
#
# if fmtutil-sys is available rebuild all available formats
#
dhit_libkpathsea_configured ()
{
kpsewhich --version >/dev/null 2>&1
}
dhit_build_format ()
{
tempfile=$(mktemp -p /tmp fmtutil.XXXXXXXX)
printf "Building format(s) $*.\n\tThis may take some time... "
if fmtutil-sys "$@" > $tempfile 2>&1 ; then
rm -f $tempfile
echo "done."
else
exec >&2
echo
echo "fmtutil-sys failed. Output has been stored in"
echo "$tempfile"
echo "Please include this file if you report a bug."
echo
exit 1
fi
}
case "$1" in
configure|reconfigure)
update-fmtutil
update-language
if dhit_libkpathsea_configured; then
# we are shipping mktexlsr, so it must be there!
mktexlsr /usr/share/texmf /usr/share/texlive/texmf-dist /var/lib/texmf
if [ -r /usr/share/texlive/texmf-dist/texconfig/tcfmgr ] ; then
dhit_build_format --refresh
fi
fi
;;
esac
|