"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "susefilter-1.5/filter/dvi" of archive susefilter-1.5.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 #
2 # Module filter/dvi for apsfilter
3 #
4 # Copyright 1996 S.u.S.E. GmbH
5 # Author: Werner Fink <werner@suse.de>
6 #
7 #
8 # findfilter () is defined in handler/functions called by apsfilter
9 #
10 # print dvi files
11 #
12 # PRINT_DVI = full command to print dvi files defined in
13 # /etc/apsfilterrc or /etc/apsfilterrc.$PRINTER
14 #
15 if [ -z "$PRINT_DVI" ]; then
16 findfilter dvips DVIPS
17 [ -z "$DVIPS_OPTS" ] && DVIPS_OPTS="-q"
18 print_stdin()
19 {
20 $DECOMPRESS cat > $TMP_FILE
21 $HAVE_DVIPS -f -o >(eval $PRINT_PS) $DVIPS_OPTS < $TMP_FILE
22 }
23 else
24 #
25 # Does the user have a better dvi print program ?
26 # Ok, here we go !!
27 #
28 print_stdin()
29 {
30 $DECOMPRESS $PRINT_DVI
31 }
32 fi
33
34 #
35 # Declare for export
36 #
37 declare -xf print_stdin
38
39 #
40 # End
41 #