summaryrefslogtreecommitdiff
path: root/libre/texlive-bin-libre/texlive.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-08-04 11:39:11 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-08-04 11:39:11 -0300
commit0bbedbd0351b5ad85b9ffee2704b8cb920b44cd2 (patch)
tree4ed2a39b1f8ca9708c9b1535f143da83f6a1a567 /libre/texlive-bin-libre/texlive.install
parent7d20f7da957e34129ef9ccdb07822e31109613b3 (diff)
downloadabslibre-0bbedbd0351b5ad85b9ffee2704b8cb920b44cd2.tar.gz
abslibre-0bbedbd0351b5ad85b9ffee2704b8cb920b44cd2.tar.bz2
abslibre-0bbedbd0351b5ad85b9ffee2704b8cb920b44cd2.zip
texlive-bin-libre-2013.30973-2: updating version
Diffstat (limited to 'libre/texlive-bin-libre/texlive.install')
-rw-r--r--libre/texlive-bin-libre/texlive.install33
1 files changed, 20 insertions, 13 deletions
diff --git a/libre/texlive-bin-libre/texlive.install b/libre/texlive-bin-libre/texlive.install
index 06a40a3b3..96a41bcfc 100644
--- a/libre/texlive-bin-libre/texlive.install
+++ b/libre/texlive-bin-libre/texlive.install
@@ -2,13 +2,16 @@ infodir=usr/share/info
filelist=(dvipng.info dvips.info eplain.info epspdf.info fontname.info kpathsea.info latex2e-es.info latex2e.info latex2man.info mf2pt1.info tds.info texdraw.info web2c.info)
post_install() {
- echo ">>> texlive: updating the filename database..."
- usr/bin/mktexlsr
- 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)"
-
+ 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
[[ -x usr/bin/install-info ]] || return 0
for file in "${filelist[@]}"; do
install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
@@ -17,15 +20,19 @@ post_install() {
post_upgrade() {
local corename corever _pacout
- echo ">>> texlive: updating the filename database..."
- usr/bin/mktexlsr
+ if [[ -f usr/bin/mktexlsr ]]; then
+ echo ">>> texlive: updating the filename database..."
+ usr/bin/mktexlsr
+ fi
_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)"
+ 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
else
echo "WARNING: not recreating formats since texlive-core has version '$corever'"
fi