|
|
1.1 root 1: #
2: # Runs the test files that you'll find in this directory. You may want to change
3: # the definitions of PRINT and BINDIR. The default definition of BINDIR assumes
4: # the translators are installed in /usr/lbin/postscript, while PRINT just writes
5: # everything to stdout. Unrecognized options (ie. options other than -P and -B)
6: # are passed along to the translator.
7: #
8: # For example, if postio is installed in /usr/lbin/postscript, the following runs
9: # the dmd bitmap translator on the test file ./postdmd1 and sends the output to
10: # the printer attached to /dev/tty01.
11: #
12: # runtests -P'/usr/lbin/postscript/postio -l /dev/tty01' -pland postdmd
13: #
14:
15: OPTIONS=
16: PRINT=cat
17: BINDIR=/usr/lbin/postscript
18:
19: for i do
20: case $i in
21: -P*) PRINT=`echo $i | sed s/-P//`;;
22:
23: -B*) BINDIR=`echo $i | sed s/-B//`;;
24:
25: -*) OPTIONS="$OPTIONS $i";;
26:
27: *) break;;
28: esac
29: shift
30: done
31:
32: for i do
33: for j in ${i}*; do
34: if [ ! -r "$j" ]; then
35: break
36: fi
37: case $j in
38: dpost*)
39: $BINDIR/dpost $OPTIONS $j | $PRINT;;
40:
41: postbgi*)
42: $BINDIR/postbgi $OPTIONS $j | $PRINT;;
43:
44: posttek*)
45: $BINDIR/posttek $OPTIONS $j | $PRINT;;
46:
47: postdmd*)
48: $BINDIR/postdmd $OPTIONS $j | $PRINT;;
49:
50: postmd*)
51: $BINDIR/postmd $OPTIONS $j | $PRINT;;
52:
53: postdaisy*)
54: $BINDIR/postdaisy $OPTIONS $j | $PRINT;;
55:
56: postprint*)
57: $BINDIR/postprint $OPTIONS $j | $PRINT;;
58:
59: postplot*)
60: $BINDIR/postplot $OPTIONS $j | $PRINT;;
61:
62: postgif*)
63: $BINDIR/postgif $OPTIONS $j | $PRINT;;
64:
65: troff*)
66: pic $j | tbl | eqn | troff -mm -Tpost | $BINDIR/dpost $OPTIONS | $PRINT;;
67:
68: man*)
69: troff -man -Tpost $j | $BINDIR/dpost $OPTIONS | $PRINT;;
70: esac
71: done
72: done
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.