diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-10 07:40:28 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2012-09-10 07:40:28 +0200 |
commit | f6dd4bb5ee43f44c7ffe2e236d1e3b065b591022 (patch) | |
tree | 95a1bf119c3fc15c123dbec81e1788bc49ec2162 /sys/lib/lp | |
parent | 2fd758bf2a32d49731d477af6aa18ef763e20937 (diff) |
lp: handle HTML files with html2ms | troff in process/generic
Diffstat (limited to 'sys/lib/lp')
-rwxr-xr-x | sys/lib/lp/process/generic | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/lib/lp/process/generic b/sys/lib/lp/process/generic index 0188bc0f4..e10d3514c 100755 --- a/sys/lib/lp/process/generic +++ b/sys/lib/lp/process/generic @@ -1,7 +1,7 @@ #!/bin/rc # Tries to determine what type of file you are printing and do the correct # thing with it. -# It currently knows about images, troff intermediate, and ascii files. +# It currently knows about images, troff intermediate, HTML and ascii files. rfork e temp=/tmp/lp$pid fn sigexit { rm -f $temp } @@ -194,7 +194,7 @@ case empty case cannot echo cannot open file >[1=2] case English short extended alef limbo [Aa]scii assembler c latin rc sh \ - as mail email message/rfc822 manual HTML + as mail email message/rfc822 manual switch ($LPCLASS) { case *post* $proc/ppost <$temp @@ -207,6 +207,8 @@ case English short extended alef limbo [Aa]scii assembler c latin rc sh \ case * echo Unrecognized class of line printer for $LPDEST >[1=2] } +case HTML + uhtml <$temp | html2ms | troff -ms | $proc/generic case * echo $type(2) file is improper for $LPDEST >[1=2] } |