1998-04-18 12:54:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
cd ${WRKSRC}
|
|
|
|
|
|
|
|
${MV} GP GP.bak
|
1998-08-24 01:06:35 +00:00
|
|
|
if [ X"${LANGUAGE}" = "XEnglish" ]; then
|
1998-04-18 12:54:22 +00:00
|
|
|
${SED} \
|
1998-08-24 01:06:35 +00:00
|
|
|
-e 's@^\(set[ ]*PRINTER_LIST[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/printer"\2@' \
|
|
|
|
-e 's@^\(set[ ]*FILETYPE_LIST[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/filetype"\2@' \
|
|
|
|
-e 's@^\(set[ ]*FILTERS_DIR[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/filters"\2@' \
|
|
|
|
-e 's@^\(set[ ]*ICONS_PATH[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/icons"\2@' \
|
1998-04-18 12:54:22 +00:00
|
|
|
< GP.bak > GP
|
1998-08-24 01:06:35 +00:00
|
|
|
elif [ X"${LANGUAGE}" = "XJapanese" ]; then
|
|
|
|
${SED} \
|
|
|
|
-e 's@^\(set[ ]*PRINTER_LIST[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/ja/printer"\2@' \
|
|
|
|
-e 's@^\(set[ ]*FILETYPE_LIST[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/ja/filetype"\2@' \
|
|
|
|
-e 's@^\(set[ ]*FILTERS_DIR[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/ja/filters"\2@' \
|
|
|
|
-e 's@^\(set[ ]*ICONS_PATH[ ]*\)"[^"]*"\(.*\)$@\1"%%PREFIX%%/lib/GP/ja/icons"\2@' \
|
|
|
|
< GP.bak > GP
|
|
|
|
fi
|
1998-04-18 12:54:22 +00:00
|
|
|
${MV} GP GP.bak
|
|
|
|
${SED} \
|
1998-08-24 01:06:35 +00:00
|
|
|
-e "s@%%PREFIX%%@${PREFIX}@g" \
|
|
|
|
-e 's@^\(set[ ]*PS_PREVIEWER[ ]*\)"[^"]*"\(.*\)$@\1"/usr/X11R6/bin/gv"\2@' \
|
1998-04-18 12:54:22 +00:00
|
|
|
< GP.bak > GP
|
|
|
|
|
|
|
|
cd ${WRKSRC}/filters
|
|
|
|
|
1998-08-24 01:06:35 +00:00
|
|
|
if [ X"${LANGUAGE}" = "XEnglish" ]; then
|
|
|
|
for f in a2ps dvips; do
|
1998-04-18 12:54:22 +00:00
|
|
|
${MV} ${f} ${f}.bak
|
|
|
|
${SED} -e 's@^\(NUMBER[ ]*=\).*$@\1 1@' < ${f}.bak > ${f}
|
|
|
|
${RM} -f ${f}.bak
|
|
|
|
done
|
1998-08-24 01:06:35 +00:00
|
|
|
elif [ X"${LANGUAGE}" = "XJapanese" ]; then
|
|
|
|
for f in a2ps-j dvi2ps-j; do
|
1998-04-18 12:54:22 +00:00
|
|
|
${MV} ${f} ${f}.bak
|
|
|
|
${SED} -e 's@^\(NUMBER[ ]*=\).*$@\1 1@' < ${f}.bak > ${f}
|
|
|
|
${RM} -f ${f}.bak
|
|
|
|
done
|
|
|
|
fi
|