Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 3797170ad481162421820887231b4c00 > scriptlet

xpdf-cyrillic-1.0-3.noarch.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	umask 022
	grep -v 'KOI8-R\.unicodeMap' /etc/xpdfrc > /etc/xpdfrc.new
	grep -v 'Bulgarian\.nameToUnicode' /etc/xpdfrc.new > /etc/xpdfrc
	rm -f /etc/xpdfrc.new
fi

POSTIN

/bin/sh
umask 022
if [ ! -f /etc/xpdfrc ]; then
	echo 'unicodeMap	KOI8-R	/usr/share/xpdf/KOI8-R.unicodeMap' >> /etc/xpdfrc
	echo 'nameToUnicode		/usr/share/xpdf/Bulgarian.nameToUnicode' >> /etc/xpdfrc
else
 if ! grep -q 'KOI8-R\.unicodeMap' /etc/xpdfrc; then
	echo 'unicodeMap	KOI8-R	/usr/share/xpdf/KOI8-R.unicodeMap' >> /etc/xpdfrc
 fi
 if ! grep -q 'Bulgarian\.nameToUnicode' /etc/xpdfrc; then
	echo 'nameToUnicode		/usr/share/xpdf/Bulgarian.nameToUnicode' >> /etc/xpdfrc
 fi
fi