diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-02-07 17:30:00 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-02-07 17:30:00 -0300 |
commit | 65a198135f3255fff0ee1a0d3f52b756347a4fca (patch) | |
tree | e5010dda00c3f773f68b0c6df979119e9fc09a33 /libre/texlive-bin-libre/texlive.install | |
parent | bbbe8b0f93216d3d14afe0d843929db5f89ccb2d (diff) | |
parent | b0b6cee54d701214ffadc018f75ef7c82ab9a14d (diff) |
Merge branch 'master' of ssh://gparabola/abslibre
Diffstat (limited to 'libre/texlive-bin-libre/texlive.install')
-rw-r--r-- | libre/texlive-bin-libre/texlive.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libre/texlive-bin-libre/texlive.install b/libre/texlive-bin-libre/texlive.install index 9307c536b..b85850123 100644 --- a/libre/texlive-bin-libre/texlive.install +++ b/libre/texlive-bin-libre/texlive.install @@ -1,3 +1,6 @@ +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 @@ -5,6 +8,11 @@ post_install() { usr/bin/fmtutil-sys --all 1>/dev/null echo " done." echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" + + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done } post_upgrade() { @@ -14,5 +22,16 @@ post_upgrade() { usr/bin/fmtutil-sys --all 1>/dev/null echo " done." echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)" + + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done } +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + for file in "${filelist[@]}"; do + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null + done +} |