diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 1997-05-19 10:35:55 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 1997-05-19 10:35:55 +0000 |
| commit | fcc0587080d3250a509550d7222e70e6cdc7d281 (patch) | |
| tree | 827c9ac8236bbd050dc5f1f0753a0ebab99e026a /share/examples/printing/ifhp | |
| parent | 8935d79733d4e5938b0f22904e35d251e8eb514d (diff) | |
Diffstat (limited to 'share/examples/printing/ifhp')
| -rw-r--r-- | share/examples/printing/ifhp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/share/examples/printing/ifhp b/share/examples/printing/ifhp deleted file mode 100644 index 21e6643473e3..000000000000 --- a/share/examples/printing/ifhp +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# -# ifhp - Print Ghostscript-simulated PostScript on a DesJet 500 -# Installed in /usr/local/libexec/hpif - -# -# Treat LF as CR+LF: -# -printf "\033&k2G" || exit 2 - -# -# Read first two characters of the file -# -read first_line -first_two_chars=`expr "$first_line" : '\(..\)'` - -if [ "$first_two_chars" = "%!" ]; then - # - # It is PostScript; use Ghostscript to scan-convert and print it - # - /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 -sOutputFile=- - \ - && exit 0 - -else - # - # Plain text or HP/PCL, so just print it directly; print a form - # at the end to eject the last page. - # - echo $first_line && cat && printf "\f" && exit 2 -fi - -exit 2 |
