386BSD 0.1 development
[unix-history] / usr / othersrc / public / ghostscript-2.4.1 / maint.mak
CommitLineData
585b7b09
WJ
1# Copyright (C) 1991, 1992 Aladdin Enterprises. All rights reserved.
2# Distributed by Free Software Foundation, Inc.
3#
4# This file is part of Ghostscript.
5#
6# Ghostscript is distributed in the hope that it will be useful, but
7# WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
8# to anyone for the consequences of using it or for whether it serves any
9# particular purpose or works at all, unless he says so in writing. Refer
10# to the Ghostscript General Public License for full details.
11#
12# Everyone is granted permission to copy, modify and redistribute
13# Ghostscript, but only under the conditions described in the Ghostscript
14# General Public License. A copy of this license is supposed to have been
15# given to you along with Ghostscript so you can know your rights and
16# responsibilities. It should be in a file named COPYING. Among other
17# things, the copyright notice and this notice must be preserved on all
18# copies.
19
20# Auxiliary MS-DOS makefile for maintenance operations.
21
22# This file pertains to Aladdin Enterprises maintenance operations,
23# and is unlikely to be useful to users.
24
25DRIVE=a:
26LABEL=041992
27
28# Targets:
29# xmit -- make the .BE files for Kermit transmission
30# xfer -- make a diskette for transferring files to the Sun
31# release -- make the .BE files for a release
32# disk720, disk1.2, disk1.44 -- make a MS-DOS diskette set
33# Remember to erase *.zip / *.z / *.be, if needed, before running these.
34
35# ---------------- Make files for Kermit transmission ----------------
36
37TARS=tar1.be tar2.be tar3a.be tar3b.be tar3c.be tar4a.be tar4b.be tar5.be tar6.be tar7.be
38
39xmit: $(TARS)
40
41xfer: tar1.z tar2.z tar3a.z tar3b.z tar3c.z tar4a.z tar4b.z \
42 tar5.z tar6.z tar7.z
43 @echo ---------------- Insert diskette:
44 @command /c pause
45 xcopy tar_x a:
46 xcopy tar*.z a:
47
48release: $(TARS) tar0.be
49
50# The dependency lists for the .be files should be much longer!
51
52.z.be:
53 bed $*.z $*.be
54 erase $*.z
55
56tar0.z: gs.exe gs386.exe
57 tar -b1 -cf _temp_.t -uexe gs.exe gs386.exe
58 compress -i _temp_.t
59 if exist tar0.z erase tar0.z
60 rename _temp_.txz tar0.z
61
62tar1.z: \cp.bat \rm.bat bdftops.bat font2c.bat pfbtogs.bat
63 copy \cp.bat
64 copy \rm.bat
65 tar -b1 -cf _temp_.t -ubat g*.asm i*.asm gs*.bat cp.bat bdftops.bat font2c.bat pfbtogs.bat showpbm.bat rm.bat
66 compress -i _temp_.t
67 rm tar1.z
68 rename _temp_.txz tar1.z
69
70tar2.z: ansi2knr.c checkall ega.c uniq.c
71 tar -b1 -cf _temp_.t ansi2knr.c checkall ega.c uniq.c
72 compress -i _temp_.t
73 rm tar2.z
74 rename _temp_.txz tar2.z
75
76tar3a.z: gs.c
77 tar -b1 -cf _temp_.t gs*.c
78 compress -i _temp_.t
79 rm tar3a.z
80 rename _temp_.txz tar3a.z
81
82tar3b.z: gxfill.c
83 tar -b1 -cf _temp_.t gx*.c
84 compress -i _temp_.t
85 rm tar3b.z
86 rename _temp_.txz tar3b.z
87
88tar3c.z: gconfig.c genarch.c
89 tar -b1 -cf _temp_.t gdev*.c gp_*.c gconfig.c genarch.c
90 compress -i _temp_.t
91 rm tar3c.z
92 rename _temp_.txz tar3c.z
93
94tar4a.z: interp.c stream.c turboc.cfg history.doc
95 tar -b1 -cf _temp_.t i*.c s*.c turboc.cfg *.doc
96 compress -i _temp_.t
97 rm tar4a.z
98 rename _temp_.txz tar4a.z
99
100tar4b.z: zarith.c
101 tar -b1 -cf _temp_.t z*.c
102 compress -i _temp_.t
103 rm tar4b.z
104 rename _temp_.txz tar4b.z
105
106tar5.z: gs.h gs.mak
107 tar -b1 -cf _temp_.t *.h *.mak *.man *.sh *.tr tar_*.
108 compress -i _temp_.t
109 rm tar5.z
110 rename _temp_.txz tar5.z
111
112tar6.z: gs_init.ps uglyr.gsf
113 tar -b1 -cf _temp_.t *.ps ugly*.*
114 compress -i _temp_.t
115 rm tar6.z
116 rename _temp_.txz tar6.z
117
118tar7.z: fontmap license readme bdftops font2c pfbtogs ccgs echoq
119 tar -b1 -cf _temp_.t fontmap license readme bdftops font2c pfbtogs showpbm gs*. ccgs echoq
120 compress -i _temp_.t
121 rm tar7.z
122 rename _temp_.txz tar7.z
123
124# ---------------- Make MS-DOS diskette sets ----------------
125# We have to juggle things carefully to make the files fit.
126
127disk720:
128 make disk1dd
129 make disk2dd
130 make disk3dd
131 make disk4dd
132 make disk5dd
133 make disk6dd
134 make disk7dd
135 @echo ---------------- Done. ----------------
136
137disk1.2 disk1.44:
138 make disk1hd
139 make disk2hd
140 make disk3hd
141 make disk4hd
142 @echo ---------------- Done. ----------------
143
144# ------ Here are the ZIP files that go onto the diskettes. ------
145# We have to break them up so they will fit onto 720Kb media,
146# and so that two of them will fit onto 1.2Mb media.
147
148gsexe.zip: gs.exe gs386.exe
149 if exist gsexe.zip erase gsexe.zip
150 pkzip gsexe.zip gs.exe gs386.exe \watc\bin\dos4gw.exe
151
152gsfiles.zip: bdftops.bat
153 if exist _temp_.zip erase _temp_.zip
154 pkzip _temp_.zip gs*.bat bdftops.bat font2c.bat pfbtogs.bat showpbm.bat *.doc
155 pkzip -a _temp_.zip *.ps fontmap license readme bdftops font2c pfbtogs showpbm
156 pkzip -d _temp_.zip q* q*.* t.* comp1.*
157 if exist gsfiles.zip erase gsfiles.zip
158 rename _temp_.zip gsfiles.zip
159
160gssrc1.zip: ansi2knr.c
161 if exist _temp_.zip erase _temp_.zip
162 pkzip _temp_.zip \rm.bat \cp.bat
163 pkzip -a _temp_.zip g*.asm i*.asm
164 pkzip -a _temp_.zip ansi2knr.c ega.c uniq.c turboc.cfg
165 pkzip -a _temp_.zip *.h *.mak *.man *.sh *.tr tar_*. ugly*.*
166 pkzip -a _temp_.zip gs*. ccgs echoq
167 pkzip -d _temp_.zip arch.h gconfig.h obj*.tr lib*.tr _temp*.*
168 pkzip -d _temp_.zip ugly*.bdf libc*.tr q* q*.* t.* comp1.*
169 if exist gssrc1.zip erase gssrc1.zip
170 rename _temp_.zip gssrc1.zip
171
172gssrc2.zip: gs.c
173 if exist _temp_.zip erase _temp_.zip
174 pkzip _temp_.zip g*.c i*.c s*.c z*.c
175 pkzip -d _temp_.zip zlzw*.c slzw*.c comp1.*
176 if exist gssrc2.zip erase gssrc2.zip
177 rename _temp_.zip gssrc2.zip
178
179gsfonts1.zip: fonts\bchr.gsf fonts\pagk.gsf fonts\pbkd.gsf fonts\pcrro.gsf
180 if exist _temp_.zip erase _temp_.zip
181 pkzip _temp_.zip fonts\b*.gsf fonts\pa*.gsf fonts\pb*.gsf fonts\pc*.gsf
182 if exist gsfonts1.zip erase gsfonts1.zip
183 rename _temp_.zip gsfonts1.zip
184
185gsfonts2.zip: fonts\phvr.gsf fonts\pncr.gsf fonts\pplr.gsf
186 if exist _temp_.zip erase _temp_.zip
187 pkzip _temp_.zip fonts\ph*.gsf fonts\pn*.gsf fonts\pp*.gsf
188 if exist gsfonts2.zip erase gsfonts2.zip
189 rename _temp_.zip gsfonts2.zip
190
191gsfonts3.zip: fonts\psyr.gsf fonts\ptmr.gsf fonts\pzdr.gsf fonts\zcr.gsf
192 if exist _temp_.zip erase _temp_.zip
193 pkzip _temp_.zip fonts\ps*.gsf fonts\pt*.gsf fonts\pz*.gsf fonts\z*.gsf
194 if exist gsfonts3.zip erase gsfonts3.zip
195 rename _temp_.zip gsfonts3.zip
196
197gsfonts4.zip: fonts\cour.pfa hershey\hrsy_r.gsf
198 if exist _temp_.zip erase _temp_.zip
199 pkzip _temp_.zip hershey\*.gsf fonts\*.pfa
200 if exist gsfonts4.zip erase gsfonts4.zip
201 rename _temp_.zip gsfonts4.zip
202
203# ------ Now the actual contents of the diskettes. ------
204
205# Double density diskettes (720K)
206
207disk1dd: readme.1st gsexe.zip
208 @askdisk 1 $(DRIVE) $(LABEL)_1$7
209 xcopy readme.1st $(DRIVE) /v
210 xcopy \utils\pkunzip.exe $(DRIVE) /v
211 xcopy gsexe.zip $(DRIVE) /v
212 dir $(DRIVE)
213
214disk2dd: gsfiles.zip gssrc1.zip
215 @askdisk 2 $(DRIVE) $(LABEL)_2$7
216 xcopy gsfiles.zip $(DRIVE) /v
217 xcopy gssrc1.zip $(DRIVE) /v
218 dir $(DRIVE)
219
220disk3dd: gssrc2.zip
221 @askdisk 3 $(DRIVE) $(LABEL)_3$7
222 xcopy gssrc2.zip $(DRIVE) /v
223 dir $(DRIVE)
224
225disk4dd: gsfonts1.zip
226 @askdisk 4 $(DRIVE) $(LABEL)_4$7
227 xcopy gsfonts1.zip $(DRIVE) /v
228 dir $(DRIVE)
229
230disk5dd: gsfonts2.zip
231 @askdisk 5 $(DRIVE) $(LABEL)_5$7
232 xcopy gsfonts2.zip $(DRIVE) /v
233 dir $(DRIVE)
234
235disk6dd: gsfonts3.zip
236 @askdisk 6 $(DRIVE) $(LABEL)_6$7
237 xcopy gsfonts3.zip $(DRIVE) /v
238 dir $(DRIVE)
239
240disk7dd: gsfonts4.zip
241 @askdisk 7 $(DRIVE) $(LABEL)_7$7
242 xcopy gsfonts4.zip $(DRIVE) /v
243 dir $(DRIVE)
244
245# High density diskettes (1.2Mb or 1.44Mb)
246
247disk1hd: readme.1st gsexe.zip gsfiles.zip
248 @askdisk 1 $(DRIVE) $(LABEL)_1$4
249 xcopy readme.1st $(DRIVE) /v
250 xcopy \utils\pkunzip.exe $(DRIVE) /v
251 xcopy gsexe.zip $(DRIVE) /v
252 xcopy gsfiles.zip $(DRIVE) /v
253 dir $(DRIVE)
254
255disk2hd: gssrc1.zip gssrc2.zip
256 @askdisk 2 $(DRIVE) $(LABEL)_2$4
257 xcopy gssrc1.zip $(DRIVE) /v
258 xcopy gssrc2.zip $(DRIVE) /v
259 dir $(DRIVE)
260
261disk3hd: gsfonts1.zip gsfonts2.zip
262 @askdisk 3 $(DRIVE) $(LABEL)_3$4
263 xcopy gsfonts1.zip $(DRIVE) /v
264 xcopy gsfonts2.zip $(DRIVE) /v
265 dir $(DRIVE)
266
267disk4hd: gsfonts3.zip gsfonts4.zip
268 @askdisk 4 $(DRIVE) $(LABEL)_4$4
269 xcopy gsfonts3.zip $(DRIVE) /v
270 xcopy gsfonts4.zip $(DRIVE) /v
271 dir $(DRIVE)