summaryrefslogtreecommitdiff
path: root/packaging/SGI/sambalp
blob: d7c6be2a2d4faa082a558f903847e087d453fb92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
#
# Workaround Win95 printer driver/Impressario bug by removing
# the PS check for available virtual memory.  Note that this
# bug appears to be in all Win95 print drivers that generate
# PostScript; but is for certain there with a QMS-PS 810 (the
# printer type I configure on the Win95-side for printing with
# Samba).
#
# the sed script fixes 3 different bugs. The first line removes
# the JCL statements added by some HP printer drivers to the
# beginning of the postscript output. The second line fixes a
# bug in output from word files with long filenames. A non-printing
# character added to the end of the title comment by word is 
# removed. The third and fourth lines are the VM fix described
# above.
#
TITLE="$3 on $4"

sed -f /usr/samba/bin/psfixes.sed $2 | /usr/bin/lp -c -d$1 -t"$TITLE"
rm $2