summaryrefslogtreecommitdiff
path: root/libre/texlive-core/texlive.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-22 01:28:24 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-22 01:30:20 -0300
commit494408025712211842f873fa48e113d543084726 (patch)
treee6a41e1a6993d7429af10283f207d10b36497060 /libre/texlive-core/texlive.install
parent478400cf70c1926aacbc23fa8fb70fbaaae07ef0 (diff)
texlive-core 2016.42515-2.parabola1: updating version
Diffstat (limited to 'libre/texlive-core/texlive.install')
-rw-r--r--libre/texlive-core/texlive.install64
1 files changed, 6 insertions, 58 deletions
diff --git a/libre/texlive-core/texlive.install b/libre/texlive-core/texlive.install
index 282186ad0..041ac72c8 100644
--- a/libre/texlive-core/texlive.install
+++ b/libre/texlive-core/texlive.install
@@ -1,64 +1,12 @@
-PKGNAME="texlive-core"
-UPDMAP="etc/texmf/web2c/updmap.cfg"
-UPDMAPLOCAL="etc/texmf/web2c/updmap-local.cfg"
-SYNCWITHTREES=''
-
-MAPFILE="var/lib/texmf/arch/installedpkgs/$PKGNAME.maps"
-
post_install() {
- echo ">>> texlive: regenerating updmap.cfg (custom additions should go"
- echo " into /etc/texmf/web2c/updmap-local.cfg"
- cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP
- cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP
- [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP
- echo ">>> texlive: updating the filename database..."
- usr/bin/mktexlsr
- (cd etc/texmf && ../../bin/mtxrun --generate >/dev/null)
- # We need to remove directory "." from luatex cache to avoid absurd
- # behaviour.
- for item in var/lib/texmf/luatex-cache/context/*/trees/*.lua; do
- grep -F '["root"]="."' "$item" >/dev/null && rm -f "$item" "${item%.lua}.luc"
- done
- echo ">>> texlive: updating the fontmap files with updmap..."
- usr/bin/updmap-sys --quiet --nohash
- echo " done."
- 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)"
- echo "NB: To setup ConTeXt and the lua(la)tex font db,"
- echo " see http://wiki.archlinux.org/index.php/TeX_Live"
+ echo ">>> updmap custom entries should go into /etc/texmf/web2c/updmap-local.cfg"
+ echo ">>> fmtutil custom entries should go into /etc/texmf/web2c/fmtutil-local.cnf"
+ echo "NB: To setup ConTeXt and the lua(la)tex font db,"
+ echo " see http://wiki.archlinux.org/index.php/TeX_Live"
}
post_upgrade() {
- echo ">>> texlive: regenerating updmap.cfg (custom additions should go"
- echo " into /etc/texmf/web2c/updmap-local.cfg"
- cp usr/share/texmf-dist/web2c/updmap-hdr.cfg $UPDMAP
- cat var/lib/texmf/arch/installedpkgs/*.maps >> $UPDMAP
- [ -f "$UPDMAPLOCAL" ] && cat "$UPDMAPLOCAL" >> $UPDMAP
- echo ">>> texlive: updating the filename database..."
- usr/bin/mktexlsr
- (cd usr/share/texmf-dist && ../../bin/mtxrun --generate >/dev/null)
- # We need to remove directory "." from luatex cache to avoid absurd
- # behaviour.
- for item in var/lib/texmf/luatex-cache/context/*/trees/*.lua; do
- grep -F '["root"]="."' "$item" >/dev/null && rm -f "$item" "${item%.lua}.luc"
- done
- echo ">>> texlive: updating the fontmap files with updmap..."
- usr/bin/updmap-sys --quiet --nohash $SYNCWITHTREES
- echo " done."
- echo ">>> texlive: recreating all formats..."
- usr/bin/fmtutil-sys --all 1>/dev/null
- echo " done."
- echo " (logs are under /var/lib/texmf/web2c/<engine>/<formatname>.log)"
- echo "NB: To setup ConTeXt and the lua(la)tex font db,"
- echo " see http://wiki.archlinux.org/index.php/TeX_Live"
- if [[ "$2" == 200* ]]; then
- echo "Important note. Some directories have moved:"
- echo " \$TEXMFSYSVAR is now /var/lib/texmf (previously /usr/share/texmf-var)"
- echo " \$TEXMFSYSCONFIG is now /etc/texmf (previously /usr/share/texmf-config)"
- echo "Please move and update the config files you had modified and delete the rest."
- echo "(Note however that updmap.cfg has been automatically copied and updated.)"
- fi
+ echo ">>> updmap custom entries should go into /etc/texmf/web2c/updmap-local.cfg"
+ echo ">>> fmtutil custom entries should go into /etc/texmf/web2c/fmtutil-local.cnf"
}