1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/print/gp/scripts/post-build
Jun-ichiro itojun Hagino 4074a72f30 port update, to let it build correctly.
PR:		6110
1998-04-18 12:54:22 +00:00

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