summaryrefslogtreecommitdiff
path: root/libre/texlive-bin-libre/texlive.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-27 00:08:59 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2012-08-27 00:08:59 -0300
commit4030033fc8102f13912a8262b940c0ede2d5e710 (patch)
treed978c04bfe1483835abc594176bb5667ddf670af /libre/texlive-bin-libre/texlive.install
parent0e581659e6f376ff6d2cc524502ac54e02ebb93e (diff)
downloadabslibre-4030033fc8102f13912a8262b940c0ede2d5e710.tar.gz
abslibre-4030033fc8102f13912a8262b940c0ede2d5e710.tar.bz2
abslibre-4030033fc8102f13912a8262b940c0ede2d5e710.zip
texlive-bin-libre-2012.0-4: moving new revision to [libre] repo
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