home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gs252src.zip / GS252 / MAINT.MAK < prev    next >
Text File  |  1992-09-20  |  7KB  |  220 lines

  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.  
  25. # Targets:
  26. #    xmit -- make the .BE files for Kermit transmission
  27. #    xfonts -- make the .BE files for the fonts
  28. #    xfer -- make a diskette for transferring files to the Sun
  29. #    release -- make the .BE files for a release
  30. # Remember to erase *.zip / *.z / *.be, if needed, before running these.
  31.  
  32. # ---------------- Convert Windows icons ----------------
  33.  
  34. gsgraph.icx: gsgraph.uue
  35.     eadcode / gsgraph.uue gsgraph.ico
  36.     od -o gsgraph.icx -H gsgraph.ico
  37.  
  38. gstext.icx: gstext.uue
  39.     eadcode / gstext.uue gstext.ico
  40.     od -o gstext.icx -H gstext.ico
  41.  
  42. # ---------------- Make files for Kermit transmission ----------------
  43.  
  44. TARS=tar1.be tar2.be tar3a.be tar3b.be tar3c.be tar4a.be tar4b.be tar5.be tar6.be tar7.be
  45.  
  46. xmit: $(TARS)
  47.  
  48. xexe: tar0.be
  49.  
  50. xfonts: tar8.be
  51.  
  52. xfer: tar1.z tar2.z tar3a.z tar3b.z tar3c.z tar4a.z tar4b.z \
  53.   tar5.z tar6.z tar7.z
  54.     @echo ---------------- Insert diskette:
  55.     @command /c pause
  56.     xcopy tar_x.* a:
  57.     xcopy tar*.z a:
  58.  
  59. release: xmit xexe
  60.  
  61. # The dependency lists for the .be files should be much longer!
  62.  
  63. .z.be:
  64.     bed $*.z $*.be
  65.     erase $*.z
  66.  
  67. tar0.z: gs.exe
  68.     @if not exist gs386.exe echo gs386.exe does not exist, do you want to proceed?
  69.     @if not exist gs386.exe pause
  70.     @if not exist gswin.exe echo gswin.exe does not exist, do you want to proceed?
  71.     @if not exist gswin.exe pause
  72.     tar -b1 -cf _temp_.t -uexe gs*.exe
  73.     compress -i _temp_.t
  74.     if exist tar0.z erase tar0.z
  75.     rename _temp_.txz tar0.z
  76.  
  77. tar1.z: bdftops.bat font2c.bat
  78.     tar -b1 -cf _temp_.t -ubat g*.asm i*.asm gs*.bat bdftops.bat font2c.bat
  79.  
  80.     compress -i _temp_.t
  81.     if exist tar1.z erase tar1.z
  82.     rename _temp_.txz tar1.z
  83.  
  84. tar2.z: \cp.bat \mv.bat \rm.bat ansi2knr.c echogs.c ega.c uniq.c
  85.     copy \cp.bat
  86.     copy \mv.bat
  87.     copy \rm.bat
  88.     tar -b1 -cf _temp_.t -ubat cp.bat mv.bat rm.bat ansi2knr.c echogs.c ega.c uniq.c
  89.     compress -i _temp_.t
  90.     if exist tar2.z erase tar2.z
  91.     rename _temp_.txz tar2.z
  92.  
  93. tar3a.z: gs.c
  94.     tar -b1 -cf _temp_.t gs*.c
  95.     compress -i _temp_.t
  96.     if exist tar3a.z erase tar3a.z
  97.     rename _temp_.txz tar3a.z
  98.  
  99. tar3b.z: gxfill.c
  100.     tar -b1 -cf _temp_.t gx*.c
  101.     compress -i _temp_.t
  102.     if exist tar3b.z erase tar3b.z
  103.     rename _temp_.txz tar3b.z
  104.  
  105. tar3c.z: gconfig.c genarch.c
  106.     tar -b1 -cf _temp_.t gdev*.c gp_*.c gconfig.c genarch.c
  107.     compress -i _temp_.t
  108.     if exist tar3c.z erase tar3c.z
  109.     rename _temp_.txz tar3c.z
  110.  
  111. tar4a.z: interp.c stream.c turboc.cfg gs.def history.doc gstext.icx gs.rc
  112.     tar -b1 -cf _temp_.t i*.c s*.c turboc.cfg gs.def *.doc *.icx gs.rc
  113.     compress -i _temp_.t
  114.     if exist tar4a.z erase tar4a.z
  115.     rename _temp_.txz tar4a.z
  116.  
  117. tar4b.z: zarith.c
  118.     tar -b1 -cf _temp_.t z*.c
  119.     compress -i _temp_.t
  120.     if exist tar4b.z erase tar4b.z
  121.     rename _temp_.txz tar4b.z
  122.  
  123. tar5.z: gs.h gs.mak
  124.     tar -b1 -cf _temp_.t *.h *.mak *.man *.sh *.tr tar_*.
  125.     compress -i _temp_.t
  126.     if exist tar5.z erase tar5.z
  127.     rename _temp_.txz tar5.z
  128.  
  129. tar6.z: gs_init.ps uglyr.gsf
  130.     tar -b1 -cf _temp_.t *.ps ugly*.*
  131.     compress -i _temp_.t
  132.     if exist tar6.z erase tar6.z
  133.     rename _temp_.txz tar6.z
  134.  
  135. tar7.z: fontmap copying news readme bdftops font2c ccgs
  136.     tar -b1 -cf _temp_.t fontmap copying news readme bdftops font2c gs*. ccgs
  137.     compress -i _temp_.t
  138.     if exist tar7.z erase tar7.z
  139.     rename _temp_.txz tar7.z
  140.  
  141. tar8.z: fonts\bchr.gsf fonts\hrsy_r.gsf
  142.     tar -b1 -cf _temp_.t fonts/*.gsf
  143.     compress -i _temp_.t
  144.     if exist tar8.z erase tar8.z
  145.     rename _temp_.txz tar8.z
  146.  
  147. # ---------------- Make MS-DOS diskette sets ----------------
  148.  
  149. allzips: gsexe.zip gsfiles.zip gssrc1.zip gssrc2.zip \
  150.   gsfonts1.zip gsfonts2.zip gsfonts3.zip gsfonts4.zip
  151.     @echo ---------------- Done. ----------------
  152.  
  153. srczips: gsfiles.zip gssrc1.zip gssrc2.zip
  154.     @echo ---------------- Done. ----------------
  155.  
  156. zips: gsexe.zip gsfiles.zip gssrc1.zip gssrc2.zip
  157.     @echo ---------------- Done. ----------------
  158.  
  159. # Here are the ZIP files that go onto the diskettes.
  160.  
  161. gsexe.zip: gs.exe
  162.     @if not exist gs386.exe echo gs386.exe does not exist, do you want to proceed?
  163.     @if not exist gs386.exe pause
  164.     @if not exist gswin.exe echo gswin.exe does not exist, do you want to proceed?
  165.     @if not exist gswin.exe pause
  166.     if exist gsexe.zip erase gsexe.zip
  167.     if exist gs386.exe pkzip gsexe.zip gs*.exe \watc\bin\dos4gw.exe
  168.     if not exist gs386.exe pkzip gsexe.zip gs*.exe
  169.  
  170. gsfiles.zip: bdftops.bat
  171.     if exist _temp_.zip erase _temp_.zip
  172.     pkzip _temp_.zip gs*.bat bdftops.bat font2c.bat *.doc
  173.     pkzip -a _temp_.zip *.ps fontmap copying news readme bdftops font2c
  174.     pkzip -d _temp_.zip q* q*.* t.* comp1.*
  175.     if exist gsfiles.zip erase gsfiles.zip
  176.     rename _temp_.zip gsfiles.zip
  177.  
  178. gssrc1.zip: ansi2knr.c
  179.     if exist _temp_.zip erase _temp_.zip
  180.     pkzip _temp_.zip \rm.bat \cp.bat \mv.bat
  181.     pkzip -a _temp_.zip g*.asm i*.asm
  182.     pkzip -a _temp_.zip ansi2knr.c echogs.c ega.c uniq.c turboc.cfg gs.def *.icx gs.rc
  183.     pkzip -a _temp_.zip *.h *.mak *.man *.sh *.tr tar_*. ugly*.*
  184.     pkzip -a _temp_.zip gs*. ccgs
  185.     pkzip -d _temp_.zip arch.h gconfig*.h obj*.tr lib*.tr _temp*.*
  186.     pkzip -d _temp_.zip ugly*.bdf libc*.tr q* q*.* t.* comp1.*
  187.     if exist gssrc1.zip erase gssrc1.zip
  188.     rename _temp_.zip gssrc1.zip
  189.  
  190. gssrc2.zip: gs.c
  191.     if exist _temp_.zip erase _temp_.zip
  192.     pkzip _temp_.zip g*.c i*.c s*.c z*.c
  193.     pkzip -d _temp_.zip comp1.*
  194.     if exist gssrc2.zip erase gssrc2.zip
  195.     rename _temp_.zip gssrc2.zip
  196.  
  197. gsfonts1.zip: fonts\phvr.gsf fonts\pncr.gsf fonts\pplr.gsf
  198.     if exist _temp_.zip erase _temp_.zip
  199.     pkzip _temp_.zip fonts\ph*.* fonts\pn*.* fonts\pp*.*
  200.     if exist gsfonts1.zip erase gsfonts1.zip
  201.     rename _temp_.zip gsfonts1.zip
  202.  
  203. gsfonts2.zip: fonts\bchr.gsf fonts\cyr.gsf fonts\pagk.gsf fonts\pbkd.gsf
  204.     if exist _temp_.zip erase _temp_.zip
  205.     pkzip _temp_.zip fonts\b*.* fonts\cy*.* fonts\pa*.* fonts\pb*.*
  206.     if exist gsfonts2.zip erase gsfonts2.zip
  207.     rename _temp_.zip gsfonts2.zip
  208.  
  209. gsfonts3.zip: fonts\psyr.gsf fonts\ptmr.gsf fonts\pzdr.gsf fonts\zcr.gsf
  210.     if exist _temp_.zip erase _temp_.zip
  211.     pkzip _temp_.zip fonts\ps*.* fonts\pt*.* fonts\pz*.* fonts\z*.*
  212.     if exist gsfonts3.zip erase gsfonts3.zip
  213.     rename _temp_.zip gsfonts3.zip
  214.  
  215. gsfonts4.zip: fonts\ncrr.gsf fonts\putr.gsf fonts\hrsy_r.gsf
  216.     if exist _temp_.zip erase _temp_.zip
  217.     pkzip _temp_.zip fonts\n*.gsf fonts\pu*.* fonts\h*.gsf
  218.     if exist gsfonts4.zip erase gsfonts4.zip
  219.     rename _temp_.zip gsfonts4.zip
  220.