blob: 9d9ec38a40a5944e971466e265dd7b2da4c0a4f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
# Makefile for the plain.tex, lplain.tex and webmac.tex fonts in the
# Computer Modern family.
# Based on the gf300.makefile
# contributed by John Ramsdell of the MITRE Corp., Bedford, MA.
# You can change the resolution for all magsteps with a single line
# modeled on make depend.
# make magsteps "DPI=nnn"
# where nnn is the DPI resolution
# of your printer.
# The *.mf files must be present in or linked in this directory.
# Sorry about that.
#
# Check the following lines out for compatibility with your system
# Invoke this with make "MF=mymf" "MODE=mymode" to get special
# effects. For instance, to make the gf300w fonts, the
# call would be: make all "MODE=RicohFourZeroEightZero"
TEX = /usr/local
TEXBIN = $(TEX)
MF = cmmf
MODE = localfont
MFBASE = /usr/local/lib/mf/bases
CMDLINE = MFBASES=${MFBASE} ; export MFBASES ; $(TEXBIN)/$(MF) '\mode:=$(MODE);' 'batchmode;'
# BEGIN MAGSTEPS DO NOT DELETE THIS LINE
# OR THIS LINE--the following macros are generated by make magsteps
DPI = 300
DPI_MAGHALF = 329
DPI_MAGONE = 360
DPI_MAGHALFONE = 394
DPI_MAGTWO = 432
DPI_MAGTHREE = 518
DPI_MAGFOUR = 622
DPI_MAGFIVE = 746
TEN_AT_NINE = 270
TEN_AT_EIGHT = 240
SVN_AT_SIX = 257
SVN_AT_FIVE = 214
# END MAGSTEPS DO NOT DELETE THIS LINE EITHER
.SUFFIXES: .mf .${DPI}gf
.SUFFIXES: .${DPI_MAGHALF}gf .${DPI_MAGONE}gf .${DPI_MAGTWO}gf .${DPI_MAGTHREE}gf .${DPI_MAGFOUR}gf .${DPI_MAGFIVE}gf
.SUFFIXES: .$(TEN_AT_NINE)gf .$(SVN_AT_SIX)gf .$(TEN_AT_EIGHT)gf .$(SVN_AT_FIVE)gf
.mf.${DPI}gf:
$(CMDLINE) input $*
.mf.${DPI_MAGHALF}gf:
$(CMDLINE) 'mag:=magstep(0.5);' input $*
.mf.${DPI_MAGONE}gf:
$(CMDLINE) 'mag:=magstep(1.0);' input $*
.mf.${DPI_MAGTWO}gf:
$(CMDLINE) 'mag:=magstep(2.0);' input $*
.mf.${DPI_MAGTHREE}gf:
$(CMDLINE) 'mag:=magstep(3.0);' input $*
.mf.${DPI_MAGFOUR}gf:
$(CMDLINE) 'mag:=magstep(4.0);' input $*
.mf.${DPI_MAGFIVE}gf:
$(CMDLINE) 'mag:=magstep(5.0);' input $*
.mf.$(TEN_AT_NINE)gf:
$(CMDLINE) 'mag:=9/10;' input $*
.mf.$(SVN_AT_SIX)gf:
$(CMDLINE) 'mag:=6/7;' input $*
.mf.$(TEN_AT_EIGHT)gf:
$(CMDLINE) 'mag:=8/10;' input $*
.mf.$(SVN_AT_FIVE)gf:
$(CMDLINE) 'mag:=5/7;' input $*
NOMAG = cmbsy10.${DPI}gf \
cmbx10.${DPI}gf cmbx12.${DPI}gf \
cmbx5.${DPI}gf cmbx6.${DPI}gf cmbx7.${DPI}gf cmbx8.${DPI}gf cmbx9.${DPI}gf \
cmcsc10.${DPI}gf \
cmdunh10.${DPI}gf cmex10.${DPI}gf \
cmmi10.${DPI}gf cmmi12.${DPI}gf \
cmmi5.${DPI}gf cmmi6.${DPI}gf cmmi7.${DPI}gf cmmi8.${DPI}gf cmmi9.${DPI}gf \
cmmib10.${DPI}gf \
cmr10.${DPI}gf cmr12.${DPI}gf cmr17.${DPI}gf \
cmr5.${DPI}gf cmr6.${DPI}gf cmr7.${DPI}gf cmr8.${DPI}gf cmr9.${DPI}gf \
cmsl10.${DPI}gf cmsl12.${DPI}gf cmsl8.${DPI}gf cmsl9.${DPI}gf \
cmsltt10.${DPI}gf \
cmss10.${DPI}gf cmss12.${DPI}gf cmss17.${DPI}gf cmssbx10.${DPI}gf \
cmssi10.${DPI}gf cmssi12.${DPI}gf cmssi17.${DPI}gf \
cmssq8.${DPI}gf cmssqi8.${DPI}gf \
cmsy10.${DPI}gf \
cmsy5.${DPI}gf cmsy6.${DPI}gf cmsy7.${DPI}gf cmsy8.${DPI}gf cmsy9.${DPI}gf \
cmtex10.${DPI}gf cmtex9.${DPI}gf \
cmti10.${DPI}gf cmti12.${DPI}gf cmti7.${DPI}gf cmti8.${DPI}gf cmti9.${DPI}gf \
cmtt10.${DPI}gf cmtt12.${DPI}gf cmtt8.${DPI}gf cmtt9.${DPI}gf \
cmu10.${DPI}gf
MAGHALF = cmbx10.${DPI_MAGHALF}gf cmmi10.${DPI_MAGHALF}gf cmr10.${DPI_MAGHALF}gf cmsl10.${DPI_MAGHALF}gf \
cmss10.${DPI_MAGHALF}gf cmsy10.${DPI_MAGHALF}gf cmti10.${DPI_MAGHALF}gf cmtt10.${DPI_MAGHALF}gf
MAGONE = cmsy10.${DPI_MAGONE}gf
MAGTWO = cmbx10.${DPI_MAGTWO}gf cmmi10.${DPI_MAGTWO}gf cmr10.${DPI_MAGTWO}gf cmssbx10.${DPI_MAGTWO}gf \
cmsy10.${DPI_MAGTWO}gf cmtt10.${DPI_MAGTWO}gf
MAGTHREE = cmbx10.${DPI_MAGTHREE}gf cmsy10.${DPI_MAGTHREE}gf
MAGFOUR = cmbx10.${DPI_MAGFOUR}gf cmmi10.${DPI_MAGFOUR}gf cmr10.${DPI_MAGFOUR}gf cmr7.${DPI_MAGFOUR}gf cmsy10.${DPI_MAGFOUR}gf
MAGFIVE = cmbx10.${DPI_MAGFIVE}gf cmr10.${DPI_MAGFIVE}gf
FONTS = $(NOMAG) $(MAGHALF) $(MAGONE) $(MAGTWO) $(MAGTHREE) $(MAGFOUR) \
$(MAGFIVE)
all: $(FONTS)
# Nice bit of self-reference here, as DPI uses itself to recreate itself
#
magsteps:
(base=$(DPI) ; \
echo "DPI = " $$base > magvals ; \
i=`/bin/expr $$base \* 95445` ; \
j=`/bin/expr $$base \* 1000000 + $$i + 500000` ; \
maghalf=`/bin/expr $$j / 1000000` ; \
echo "DPI_MAGHALF = " $$maghalf >> magvals ; \
i=`/bin/expr $$base \* 2` ; j=`/bin/expr $$base \* 10 + $$i + 5` ; magone=`/bin/expr $$j / 10` ; \
echo "DPI_MAGONE = " $$magone >> magvals ; \
i=`/bin/expr $$magone \* 95445` ; j=`/bin/expr $$magone \* 1000000 + $$i + 500000` ; \
maghalfone=`/bin/expr $$j / 1000000` ; \
echo "DPI_MAGHALFONE = " $$maghalfone >> magvals ; \
i=`/bin/expr $$magone \* 2` ; j=`/bin/expr $$magone \* 10 + $$i + 5` ; \
magtwo=`/bin/expr $$j / 10` ; echo "DPI_MAGTWO = " $$magtwo >> magvals ; \
i=`/bin/expr $$magtwo \* 2` ; j=`/bin/expr $$magtwo \* 10 + $$i + 5` ; \
magthree=`/bin/expr $$j / 10` ; echo "DPI_MAGTHREE = " $$magthree >> magvals ; \
i=`/bin/expr $$magthree \* 2` ; j=`/bin/expr $$magthree \* 10 + $$i + 5` ; \
magfour=`/bin/expr $$j / 10` ; echo "DPI_MAGFOUR = " $$magfour >> magvals ; \
i=`/bin/expr $$magfour \* 2` ; j=`/bin/expr $$magfour \* 10 + $$i + 5` ; \
magfive=`/bin/expr $$j / 10` ; echo "DPI_MAGFIVE = " $$magfive >> magvals ; \
i=`/bin/expr $$base \* 900` ; \
tenatnine=`/bin/expr $$i / 1000` ; \
echo "TEN_AT_NINE = " $$tenatnine >> magvals ; \
i=`/bin/expr $$base \* 800` ; \
tenateight=`/bin/expr $$i / 1000` ; \
echo "TEN_AT_EIGHT = " $$tenateight >> magvals ; \
i=`/bin/expr $$base \* 600` ; \
svnatsix=`/bin/expr $$i / 700` ; \
echo "SVN_AT_SIX = " $$svnatsix >> magvals ; \
i=`/bin/expr $$base \* 500` ; \
svnatfive=`/bin/expr $$i / 700` ; \
echo "SVN_AT_FIVE = " $$svnatfive >> magvals ; \
echo "# END MAGSTEPS DO NOT DELETE THIS LINE EITHER" >> magvals)
cp Makefile Makefile.bak
echo '/^# BEGIN MAGSTEPS/+2,/^# END MAGSTEPS/d|-1r magvals |w' | ex Makefile
# echo '/^# DO NOT DELETE THIS LINE/+2,$$d|w' | ex Makefile
# echo '# GENERATED DEPENDENCIES MUST BE AT EOF' >> Makefile
# echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
# DO NOT DELETE THIS LINE
# OR THIS LINE--the following rules are generated by make depend
# GENERATED DEPENDENCIES MUST BE AT EOF
# IF YOU PUT STUFF HERE IT WILL GO AWAY
|