PKGBUILDs/extra/texlive-bin/texlive.install

32 lines
999 B
Text
Raw Normal View History

2011-09-17 17:37:29 +00:00
post_install() {
2013-08-03 21:15:44 +00:00
if [[ -f usr/bin/mktexlsr ]]; then
echo ">>> texlive: updating the filename database..."
usr/bin/mktexlsr
fi
if [[ -f usr/bin/fmtutil-sys ]]; then
echo -n "creating all formats..."
usr/bin/fmtutil-sys --all 1>/dev/null
echo " done."
echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
fi
2011-09-17 17:37:29 +00:00
}
post_upgrade() {
2012-07-26 12:24:14 +00:00
local corename corever _pacout
2013-08-03 21:15:44 +00:00
if [[ -f usr/bin/mktexlsr ]]; then
echo ">>> texlive: updating the filename database..."
usr/bin/mktexlsr
fi
2012-07-26 12:24:14 +00:00
_pacout=$(pacman -Q texlive-core 2>/dev/null)
read corename corever <<< ${_pacout}
2014-08-29 00:40:25 +00:00
# only recreate formats if texlive-core has right version
if [[ ${corever} == 2014* ]]; then
2013-08-03 21:15:44 +00:00
if [[ -f usr/bin/fmtutil-sys ]]; then
echo -n "recreating all formats..."
usr/bin/fmtutil-sys --all 1>/dev/null
echo " done."
echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
fi
2012-07-26 12:24:14 +00:00
fi
2012-02-06 15:41:43 +00:00
}