Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 5e194178a4b64965e4e8c132d0730b06 > scriptlet

xpdf-greek-1.0-3.noarch.rpm

PREUN

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

POSTIN

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