mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
. More complete search path for mktexlsr.
PR: 59481 Submitted by: Stefan Walter <sw@gegenunendlich.de>
This commit is contained in:
parent
b315d254f8
commit
c007f73f88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94481
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user