Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 05935f2dc3e230168c674c73b6ced10c > scriptlet

xpdf-arabic-1.0-2.noarch.rpm

PREUN

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

POSTIN

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