1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/chinese/cwtex/pkg-deinstall
2007-04-19 15:11:51 +00:00

19 lines
386 B
Bash

#!/bin/sh
# Run just once.
if [ "x$2" != "xDEINSTALL" ]; then
exit 0
fi
PSFONTSMAP=`kpsewhich -format 'dvips config' config.ps`
if [ -f "${PSFONTSMAP}" ]; then
# Edit dvips/config/config.ps
sed -e /%cwtex_begin/,/%cwtex_end/d $PSFONTSMAP > $PSFONTSMAP.tmp
if [ -s "$PSFONTSMAP.tmp" ]; then
mv $PSFONTSMAP.tmp $PSFONTSMAP
else
rm $PSFONTSMAP.tmp $PSFONTSMAP
fi
fi