summaryrefslogtreecommitdiff
path: root/libre/texlive-bin/texlive.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-21 21:54:27 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-22 01:30:20 -0300
commit478400cf70c1926aacbc23fa8fb70fbaaae07ef0 (patch)
tree29b1c279de914b8d87601d9f657181748b1bf4fd /libre/texlive-bin/texlive.install
parent3b827ffb6adacb8d97f464e6fe35e16c33a5f0af (diff)
downloadabslibre-478400cf70c1926aacbc23fa8fb70fbaaae07ef0.tar.gz
abslibre-478400cf70c1926aacbc23fa8fb70fbaaae07ef0.tar.bz2
abslibre-478400cf70c1926aacbc23fa8fb70fbaaae07ef0.zip
texlive-bin-2016.41290-8.parabola1: add hook for format regeneration
Diffstat (limited to 'libre/texlive-bin/texlive.install')
-rw-r--r--libre/texlive-bin/texlive.install31
1 files changed, 0 insertions, 31 deletions
diff --git a/libre/texlive-bin/texlive.install b/libre/texlive-bin/texlive.install
deleted file mode 100644
index 22d2ad1fb..000000000
--- a/libre/texlive-bin/texlive.install
+++ /dev/null
@@ -1,31 +0,0 @@
-post_install() {
- 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
-}
-
-post_upgrade() {
- local corename corever _pacout
- 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}
- # only recreate formats if texlive-core has right version
- if [[ ${corever} == 2016* ]]; then
- 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
- fi
-}