Handle hostnames with upper-case letters
[webmin.git] / lpadmin / base_coas_driver
1 #!/bin/sh
2 source /etc/sysconfig/printers/XXX
3 if [ "$PAPERSIZE" = "a4" ]; then
4   T=A4
5 else
6   T=Letter
7 fi
8
9 enscript -M $T -Z -p - |
10
11 if [ "$DOUBLEPAGE" = "true" ]; then
12   psnup -d -b0.6cm -p$PAPERSIZE -2
13 else
14   cat -
15 fi |
16
17 if [ "$GSDEVICE" = "PostScript" ]; then
18         cat -
19 elif [ "$GSDEVICE" = "uniprint" ]; then
20         exec 3>&1 1>&2
21         gs @$UPP.upp -q -sOutputFile="|cat 1>&3"
22 else
23         gs -q $GSOPTIONS -sDEVICE=$GSDEVICE \
24                 -r$RESOLUTION \
25                 -sPAPERSIZE=$PAPERSIZE \
26                 -dNOPAUSE \
27                 -dSAFER \
28                 -sOutputFile=- -
29 fi
30
31 if [ "$SENDEOF" != "" ]; then
32         printf "\004"
33 fi
34
35 exit 0