1
--- MakeTeXPK.orig Sun Feb 23 22:12:05 1997
2
+++ MakeTeXPK Tue Aug 18 08:07:40 1998
4
: ${MAKETEXDIR=$TEXMF/maketex}
5
export TEXMF MAKETEXDIR
10
+if test -z "$cmd"; then
11
+ ttf2pk -q $NAME $DPI
14
+ if test $errstatus -ne 2; then
15
+ if test $errstatus -ne 0; then
16
+ echo "ttf2pk failed" >&2
19
+ MODE=ttf2pk # preferred mode for TDS would be `modeless'
25
+if test -z "$cmd"; then
26
+ hbf2gf -q -p $NAME $DPI
29
+ if test $errstatus -ne 2; then
30
+ if test $errstatus -ne 0; then
31
+ echo "hbf2gf failed" >&2
34
+ MODE=hbf2gf # preferred mode for TDS would be `modeless'
41
# grep for the font in $PSMAPFILE, if some ps-to-pk is claimed to be supported.
42
# We have to figure out the name of the base font -- $NAME is probably
43
# something like pplr, but it's rpplr or pplr0 or pplr8r that's in psfonts.map.
44
-pattern="^r?$NAME"'(0|8r)?([ ]|$)'
45
-psline=`egrep "$pattern" $PSMAPFILE`
46
+if test -z "$cmd"; then
47
+ pattern="^r?$NAME"'(0|8r)?([ ]|$)'
48
+ psline=`egrep "$pattern" $PSMAPFILE`
51
if test -n "$psline"; then
52
cmd="gsftopk $NAME $DPI"
54
# some installations have set up gs in such a way that creating files
55
# is only allowed if the parameter -DNOSAFER is used:
56
GS_OPTIONS=-DNOSAFER; export GS_OPTIONS
60
+if test -z "$cmd"; then
61
# If an explicit mode is not supplied, try to guess. You can get a
62
# list of extant modes from ftp.cs.umb.edu:pub/tex/modes.mf.
63
if test -z "$MODE" || test "$MODE" = default; then