Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > media > main > by-pkgid > ebe8c7854cffd72b764d284547566c03 > scriptlet

fonts-type1-baltic-1.0-6mdk.noarch.rpm

POSTIN

/bin/sh
MRK="fonts-type1-baltic"
FONTMAP=`echo /usr/share/ghostscript/[1-9]*/Fontmap | cut -d' ' -f1`

if ! grep $MRK $FONTMAP >& /dev/null ; then
	cat /usr/share/ghostscript/fonts/Fontmap.fonts-type1-baltic >> $FONTMAP
fi

if [ -x /usr/sbin/chkfontpath ]; then
   /usr/sbin/chkfontpath -q -a /usr/share/fonts/type1/baltic
else
   echo "you don't have a chkfontpath utility; you will need to manually"
   echo "install the fonts into your TTF enabled font server"
fi

POSTUN

/bin/sh
MRK="fonts-type1-baltic"
FONTMAP=`echo /usr/share/ghostscript/[1-9]*/Fontmap | cut -d' ' -f1`

# 0 means a real uninstall
if [ "$1" = "0" ]; then
   [ -x /usr/sbin/chkfontpath ] && \
   /usr/sbin/chkfontpath -q -r /usr/share/fonts/type1/baltic

   if grep $MRK $FONTMAP >& /dev/null ; then
    grep -v $MRK $FONTMAP > /usr/share/ghostscript/fonts/Fontmap.fonts-type1-baltic
    mv /usr/share/ghostscript/fonts/Fontmap.fonts-type1-baltic $FONTMAP
   fi
fi