home *** CD-ROM | disk | FTP | other *** search
- #! /bin/sh
- # invoke troff with appropriate options for use with
- # HP LaserJet II and font cartridges.
- #
- # parse arguments
- #
- options=-t
- files=
- for i in $*
- do case $i in
- -*) options="$options $i";;
- *) files="$files $i";;
- esac
- done
- #
- # insert font files
- #
- (
- echo "\
- .fp 1 R
- .fp 2 I
- .fp 3 B
- .fp 4 S
- .lg 0"
- #
- # files string empty -- use standard input
- #
- if [ "$files" ]
- then
- cat $files
- else
- cat
- fi
- ) | troff $options \
- | /usr/local/lib/troff2lj \
- | uux -n - "sst!/usr/ucb/lpr -Prhp"
-