freebsd-ports/chinese/moefonts-cid/files/pkg-deinstall.in
Hiroki Sato 50c4dcfc5c Fix an unexpected permission change from before and after port
installation and deinstallation.

Spotted by:	pointyhat
Approved by:	portmgr (krion)
2006-02-27 12:06:30 +00:00

16 lines
319 B
Bash

#!/bin/sh
# $FreeBSD$
GSVER=`gs --version`
GSDIR=%%PREFIX%%/share/ghostscript
FONTMAP=${GSDIR}/${GSVER}/lib/Fontmap.GS
FONTMAPTMP=${FONTMAP}.tmp
# Run just once.
if [ "x$2" != "xDEINSTALL" ]; then
exit 0
fi
cp ${FONTMAP} ${FONTMAPTMP}
sed -e "/^\/MOE.*/d" ${FONTMAP} > ${FONTMAPTMP}
mv -f ${FONTMAPTMP} ${FONTMAP}