freebsd-ports/textproc/ppower4/pkg-deinstall
Mark Linimon fe22788ad9 - Add a pkg-deinstall script for updating LaTeX's content cache after
deinstalling, too. (Suggested by Greg Lewis)
- When installing via port, set $PKG_PREFIX to $PREFIX for the
  pkg-install script to make it look for mktexlsr in there, too.
PR:		ports/59590
Submitted by:	Stefan Walter <sw@gegenunendlich.de> (maintainer)
2003-12-08 10:12:20 +00:00

14 lines
378 B
Bash

#!/bin/sh
if [ "$2" = "POST-DEINSTALL" ]; then
echo "Updating content cache to let LaTeX know about the new style files:"
if [ -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."
fi
fi