[tex] Index packages after installation

This commit is contained in:
Correl Roush 2023-05-02 12:09:52 -04:00
parent 485bfb0a78
commit 90ba725157

View file

@ -5,6 +5,7 @@ set -e
__tex_init="tlmgr init-usertree" __tex_init="tlmgr init-usertree"
__tex_info="tlmgr --usermode info --only-installed" __tex_info="tlmgr --usermode info --only-installed"
__tex_install="tlmgr --usermode install" __tex_install="tlmgr --usermode install"
__tex_index="texhash"
case "$_PLATFORM" in case "$_PLATFORM" in
darwin) darwin)
@ -50,7 +51,7 @@ case "$_PLATFORM" in
_apt xzdec _apt xzdec
esac esac
$__tex_init 2>/dev/null || /bin/true _run "[tex] Initializing user database" $__tex_init 2>/dev/null || /bin/true
function _tex { function _tex {
local pkg=$1 local pkg=$1
@ -87,3 +88,5 @@ _tex tufte-latex
_recipe git _recipe git
_tex_git dnd https://github.com/evanbergeron/DND-5e-LaTeX-Template.git _tex_git dnd https://github.com/evanbergeron/DND-5e-LaTeX-Template.git
_tex_git trek https://github.com/lancelet/beamer-trek.git theme _tex_git trek https://github.com/lancelet/beamer-trek.git theme
_run "[tex] Indexing packages" $__tex_index