summaryrefslogtreecommitdiff
path: root/libre/texlive-bin-libre/texlive.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-08-27 03:20:03 +0000
committerroot <root@rshg054.dnsready.net>2012-08-27 03:20:03 +0000
commitfeeabffe5469ebe2fde0e79802e470d007528b85 (patch)
tree1b98f3d07f0a38f721bc038e4e6a724ad5fc264d /libre/texlive-bin-libre/texlive.install
parentfda2b119766956ebbf97ba80640e6eeb1519cad4 (diff)
Mon Aug 27 03:20:01 UTC 2012
Diffstat (limited to 'libre/texlive-bin-libre/texlive.install')
-rw-r--r--libre/texlive-bin-libre/texlive.install16
1 files changed, 11 insertions, 5 deletions
diff --git a/libre/texlive-bin-libre/texlive.install b/libre/texlive-bin-libre/texlive.install
index b85850123..06a40a3b3 100644
--- a/libre/texlive-bin-libre/texlive.install
+++ b/libre/texlive-bin-libre/texlive.install
@@ -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