extra/texlive-bin to 2012.0-3

This commit is contained in:
Kevin Mihelich 2012-07-26 08:24:14 -04:00
parent 3391bf63e8
commit 562a317f49
2 changed files with 12 additions and 6 deletions

View file

@ -9,7 +9,7 @@
pkgname=texlive-bin
pkgver=2012.0
pkgrel=2
pkgrel=3
pkgdesc="TeX Live binaries"
license=('GPL')
arch=('i686' 'x86_64')

View file

@ -16,13 +16,19 @@ post_install() {
}
post_upgrade() {
local corename corever _pacout
echo ">>> texlive: updating the filename database..."
usr/bin/mktexlsr
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)"
_pacout=$(pacman -Q texlive-core 2>/dev/null)
read corename corever <<< ${_pacout}
if [[ ${corever} == 2012* ]]; 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)"
else
echo "WARNING: not recreating formats since texlive-core has version '$corever'"
fi
[[ -x usr/bin/install-info ]] || return 0
for file in "${filelist[@]}"; do
install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null