#!/bin/sh

# Script to produce a nicer faxpage than the standard one by using a2ps
# for the conversion of ascii to g3 fax format. It can of course only work
# if a2ps is installed on the system.
# Kees Lemmens; June 1998

# This script should be called with an Ascii -> G3 setting in xfaxrc like :
# /opt/lib/xfax/text2g3 %s.%%03d %s

PATH="/opt/bin:/usr/bin"

#GSFAXDEV=dfaxhigh # for some GNU ghostscript versions
GSFAXDEV=faxg3  # for  Aladdin ghostscript

A2PS="a2ps -1 -p -nH -nu -ns -nL -l65 -a -B"

$A2PS $2 | gs -q -sDEVICE=$GSFAXDEV -dNOPAUSE -sOutputFile=$1 - quit.ps
