mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-07 22:58:11 +00:00
4074a72f30
PR: 6110
33 lines
773 B
Bash
33 lines
773 B
Bash
#!/bin/sh
|
|
|
|
cd ${WRKSRC}
|
|
|
|
${MV} GP GP.bak
|
|
${SED} \
|
|
-e '/^set[ ]*PRINTER_LIST[ ]/s@/usr/local@%%PREFIX%%@' \
|
|
-e '/^set[ ]*FILETYPE_LIST[ ]/s@/usr/local@%%PREFIX%%@' \
|
|
-e '/^set[ ]*FILTERS_DIR[ ]/s@/usr/local@%%PREFIX%%@' \
|
|
-e '/^set[ ]*ICONS_PATH[ ]/s@/usr/local@%%PREFIX%%@' \
|
|
-e '/^set[ ]*PS_PREVIEWER[ ]/s@ghostview@gv@' \
|
|
< GP.bak > GP
|
|
${MV} GP GP.bak
|
|
${SED} \
|
|
-e "s@%%PREFIX%%@${PREFIX}@g" \
|
|
< GP.bak > GP
|
|
|
|
cd ${WRKSRC}/filters
|
|
|
|
if [ X"${LANGUAGE}" = "XJapanese" ]; then
|
|
for f in a2ps-j dvi2ps-j; do
|
|
${MV} ${f} ${f}.bak
|
|
${SED} -e 's@^\(NUMBER[ ]*=\).*$@\1 1@' < ${f}.bak > ${f}
|
|
${RM} -f ${f}.bak
|
|
done
|
|
else
|
|
for f in a2ps dvips; do
|
|
${MV} ${f} ${f}.bak
|
|
${SED} -e 's@^\(NUMBER[ ]*=\).*$@\1 1@' < ${f}.bak > ${f}
|
|
${RM} -f ${f}.bak
|
|
done
|
|
fi
|