diff options
Diffstat (limited to 'textproc/foiltex/pkg-install')
-rw-r--r-- | textproc/foiltex/pkg-install | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/textproc/foiltex/pkg-install b/textproc/foiltex/pkg-install index a97a81c6221..09c6d60ec27 100644 --- a/textproc/foiltex/pkg-install +++ b/textproc/foiltex/pkg-install @@ -1,11 +1,13 @@ #!/bin/sh -[ -z "${LOCALBASE}" ] && LOCALBASE=/usr/local - if [ "$2" = "POST-INSTALL" ]; then echo "Updating content cache to let LaTeX know about the new style files:" if [ -x ${LOCALBASE}/bin/mktexlsr ]; then ${LOCALBASE}/bin/mktexlsr + elif [ -x ${PKG_PREFIX}/bin/mktexlsr ]; then + ${PKG_PREFIX}/bin/mktexlsr + elif [ -x /usr/local/bin/mktexlsr ]; then + /usr/local/bin/mktexlsr else echo "Could not find mktexlsr. Please run it manually to update" echo "LaTeX's content cache, or you won't be able to use the" |