diff options
| author | Andreas Klemm <andreas@FreeBSD.org> | 1998-02-14 18:13:09 +0000 |
|---|---|---|
| committer | Andreas Klemm <andreas@FreeBSD.org> | 1998-02-14 18:13:09 +0000 |
| commit | 59af00b29416d3d45c25b188746dfe802c668f05 (patch) | |
| tree | 7bd51d9c8230c289a2bc192c2b9b4c8b0f11eb93 /print/gp/scripts/configure | |
| parent | cd85c810c7f40b33ba0b0c0f5741ab727331fecb (diff) | |
import of new port GP.
A GUI printer manager written with TCL/TK.
Is able to preview and convert file types before print.
Looks nice.
Diffstat (limited to 'print/gp/scripts/configure')
| -rw-r--r-- | print/gp/scripts/configure | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/print/gp/scripts/configure b/print/gp/scripts/configure new file mode 100644 index 000000000000..e96764f28b7a --- /dev/null +++ b/print/gp/scripts/configure @@ -0,0 +1,34 @@ +#!/bin/sh + +cd ${WRKSRC} + +${MV} Makefile Makefile.bak +${SED} -e 's@^PREFIX[ ]*=.*$@#&@' < Makefile.bak > Makefile + +${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%%@' \ + < GP.bak > GP +${MV} GP GP.bak +${SED} \ + -e "s@%%PREFIX%%@${PREFIX}@g" \ + < GP.bak > GP + +cd ${WRKSRC}/filters.sample + +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 |
