mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
1f842edce1
Installation script is modified for cleaner installation. Submitted by: kris
12 lines
361 B
Bash
12 lines
361 B
Bash
#!/bin/sh
|
|
if [ "$2" = "PRE-INSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
umask 222
|
|
XPDFRC=${PKG_PREFIX}/etc/xpdfrc
|
|
ADDRESOURCE=${PKG_PREFIX}/share/xpdf/japanese/dot.xpdfrc
|
|
/usr/bin/sed '/^#Japanese PDF resources$/,/^#Japanese PDF resources$/d' ${XPDFRC} > ${XPDFRC}.nojapan
|
|
/bin/rm -f ${XPDFRC}
|
|
/bin/cat ${XPDFRC}.nojapan ${ADDRESOURCE} > ${XPDFRC}
|
|
/bin/rm -f ${XPDFRC}.nojapan
|