Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > bd02c88960280254e6d28e21d76ad4c3 > scriptlet

xpdf-hebrew-1.0-4.noarch.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	umask 022
	grep -v 'ISO-8859-8\.unicodeMap' /etc/xpdfrc > /etc/xpdfrc.new
	grep -v 'Windows-1255\.unicodeMap' /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-8	/usr/share/xpdf/ISO-8859-8.unicodeMap' >> /etc/xpdfrc
	echo 'unicodeMap	Windows-1255	/usr/share/xpdf/Windows-1255.unicodeMap' >> /etc/xpdfrc
else
 if ! grep -q 'ISO-8859-8\.unicodeMap' /etc/xpdfrc; then
	echo 'unicodeMap	ISO-8859-8	/usr/share/xpdf/ISO-8859-8.unicodeMap' >> /etc/xpdfrc
 fi
 if ! grep -q 'Windows-1255\.unicodeMap' /etc/xpdfrc; then
	echo 'unicodeMap	Windows-1255	/usr/share/xpdf/Windows-1255.unicodeMap' >> /etc/xpdfrc
 fi
fi