home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / bbs / programs / amiga / pastex13.lha / DVIPS / dvips5519.lha / dvips / vms / make.com < prev    next >
Text File  |  1993-01-27  |  14KB  |  352 lines

  1. $ !
  2. $ !     dvips for VAX/VMS
  3. $ !
  4. $ !
  5. $ !     Use to compile and link dvips with VAXC under VMS.  Before using
  6. $ !     this command file you must set the following definitions according
  7. $ !     to your own environment;
  8. $ !
  9. $ !     TFMPATH         - The directory where TFM files live ( needed for
  10. $ !                       the compilation of dvips.c ).  Be sure and include
  11. $ !                       the needed directory separator in the path ( i.e.
  12. $ !                       TEX_FONTS: )
  13. $ !     PKPATH          - The directory where PK files live ( needed for the
  14. $ !                       compilation of dvips.c ).  You should also decided
  15. $ !                       whether you need VMS_ROOTED ( needed for the
  16. $ !                       compilation of loadfont.c ) defined so that
  17. $ !                       PKPATH will be interpreted as a rooted directory
  18. $ !                       under VMS.  Be sure and include the needed directory
  19. $ !                       separator in the path ( i.e. TEX_FONTS: ).
  20. $ !     HEADERPATH      - The directory where the PostScript prologue file
  21. $ !                       live ( needed for the compilation of output.c &
  22. $ !                       dvips.c).  Be sure and include a trailing comma in
  23. $ !                       your definition of the header path as dvips uses this
  24. $ !                       definition as a path for both PostScript prologue
  25. $ !                       files and files which are included with \special
  26. $ !                       options.  This definition should be a comma
  27. $ !                       separated list of directories where dvips will
  28. $ !                       look for a specified file.  As an example;
  29. $ !
  30. $ !                       "HEADERPATH=""TEX_POSTSCRIPT:,SYS$LOGIN:,"""
  31. $ !
  32. $ !                       to look first in TEX_POSTSCRIPT:, then in SYS$LOGIN:,
  33. $ !                       and finally in the current default directory.
  34. $ !     CONFIGPATH      - The directory where the configuration file lives
  35. $ !                       ( needed for the compilation of resident.c ).  Be
  36. $ !                       sure and include the needed directory separator
  37. $ !                       in the path ( i.e. TEX_POSTSCRIPT: ).
  38. $ !
  39. $ !     FIGPATH         - Where the .ps and .eps files are
  40. $ !
  41. $ !     After dvips has been compiled and linked the user will be given the
  42. $ !     option of compressing the PostScript prologue files which are used
  43. $ !     by dvips and copying the resultant prologue files to the specifed
  44. $ !     HEADERPATH.  The user will also be given the option of copying the
  45. $ !     dvips image file to the area where TeX related images are stored.
  46. $ !     Answering "yes" to either of these options should be done only if
  47. $ !     the user has write priviledges to the directories which are specified.
  48. $ !
  49. $ !     Command file by: Robert Schneider
  50. $ !                      Department of Petroleum Engineering
  51. $ !                      The University of Texas at Austin
  52. $ !
  53. $ !                      October 1989
  54. $ !
  55. $ !     Updates by:      Earle Ake
  56. $ !                      Science Applications International Corporation
  57. $ !                      Dayton, Ohio
  58. $ !                      ake@dayton.saic.com
  59. $ !
  60. $ !                      Updated for DVIPS 5.34
  61. $ !                      August 1990
  62. $ !
  63. $ !                      Ted Nieland
  64. $ !                      Control Data Corporation
  65. $ !                      DECUS TeX Collection Editor
  66. $ !                      ted@nieland.dayton.oh.us
  67. $ !
  68. $ !                      Updated for DVIPS 5.47, February 1991
  69. $ !
  70. $ !                      Updated for DVIPS 5.474, March 1992
  71. $ !                      Earle F. Ake
  72. $ !
  73. $!                       Updated for DVIPS 5.493, Sept 1992
  74. $!                       Added HAVE_GETCWD,ANSI in CC for
  75. $!                       dvips.c and resident.c
  76. $!                       Max Calvani
  77. $!                       calvani@astrpd.astro.it
  78. $!
  79. $!                       Updated for DVIPS 5.495, Oct. 1992
  80. $!                       calvani@astrpd.astro.it
  81. $!
  82. $!                       Updated for DVIPS 5.499, Jan. 1993
  83. $!                       Added FONTLIB support
  84. $!                       calvani@astrpd.astro.it
  85. $!
  86. $ on error then goto bad_exit
  87. $ on severe_error then goto bad_exit
  88. $ !
  89. $ TFMPATH = "TEX_FONTS:"
  90. $ PKPATH = "TEX_PKDIR:"
  91. $ VFPATH = "TEX_VFDIR:"
  92. $ HEADERPATH = "DVI_INPUTS:,TEX_INPUTS:,SYS$LOGIN:,SYS$DISK:[],"
  93. $ PLACEHEADER_DIR = "TEX_DISK:[TEX.INPUTS.DVIDRIVERS]"
  94. $ CONFIGPATH = "TEX_INPUTS:"
  95. $ FIGPATH = "TEX_INPUTS:,SYS$DISK:"
  96. $ TPIC = ",TPIC"
  97. $ EMTEX = ",EMTEX"
  98. $ FONTLIB = ",FONTLIB"
  99. $ VMS_ROOTED = ",VMS_ROOTED"
  100. $ TEXEXEPATH = "TEX_DISK:[TEX.EXE]"
  101. $ DEBUG = ",DEBUG"
  102. $ !
  103. $ write sys$output " "
  104. $ inquire/nop ANSWER "Have you read the file VMS_INSTALL.TXT [no]?  "
  105. $ if ANSWER .eqs. "" then ANSWER = 0
  106. $ if ANSWER then goto read_instructions
  107. $   write sys$output " "
  108. $   write sys$output "Please read the VMS_INSTALL.TXT file,  edit this command"
  109. $   write sys$output "file if necessary, and then execute this file again."
  110. $   write sys$output " "
  111. $   exit
  112. $ read_instructions:
  113. $ write sys$output " "
  114. $ inquire/nop ANSWER "Compile sources [no]?  "
  115. $ if ANSWER .eqs. "" then ANSWER = 0
  116. $ if .not. ANSWER then goto linkstep
  117. $ !
  118. $ get_definitions:
  119. $ write sys$output " "
  120. $ !
  121. $ inquire/nop ANSWER "TFM path [''TFMPATH']?  "
  122. $ if ANSWER .nes. "" then TFMPATH = ANSWER
  123. $ inquire/nop ANSWER "PK path [''PKPATH']?  "
  124. $ if ANSWER .nes. "" then PKPATH = ANSWER
  125. $ inquire/nop ANSWER "VF path [''VFPATH']?  "
  126. $ if ANSWER .nes. "" then VFPATH = ANSWER
  127. $ inquire/nop ANSWER "PostScript HEADER path [''HEADERPATH']?  "
  128. $ if ANSWER .nes. "" then HEADERPATH = ANSWER
  129. $ inquire/nop ANSWER "PostScript CONFIG path [''CONFIGPATH'])?  "
  130. $ if ANSWER .nes. "" then CONFIGPATH = ANSWER
  131. $ inquire/nop ANSWER "FIG path [''FIGPATH'])?  "
  132. $ if ANSWER .nes. "" then FIGPATH = ANSWER
  133. $ inquire/nop ANSWER "Do you want TPIC support [yes]?  "
  134. $ if ANSWER .eqs. "" then ANSWER = 1
  135. $ if .not. ANSWER then TPIC = ""
  136. $ inquire/nop ANSWER "Do you want EMTEX support [yes]?  "
  137. $ if ANSWER .eqs. "" then ANSWER = 1
  138. $ if .not. ANSWER then EMTEX = ""
  139. $ inquire/nop ANSWER "Do you want FONTLIB support [yes]?  "
  140. $ if ANSWER .eqs. "" then ANSWER = 1
  141. $ if .not. ANSWER then FONTLIB = ""
  142. $ inquire/nop ANSWER "Do you want DEBUG support [yes]?  "
  143. $ if ANSWER .eqs. "" then ANSWER = 1
  144. $ if .not. ANSWER then DEBUG = ""
  145. $ inquire/nop ANSWER "Is ''PKPATH' a rooted directory [yes]?   "
  146. $ if ANSWER .eqs. "" then ANSWER = 1
  147. $ if .not. ANSWER then VMS_ROOTED = ""
  148. $ write sys$output " "
  149. $ write sys$output "dvips will be compiled with the following definitions;"
  150. $ write sys$output " "
  151. $ write sys$output "TFMPATH = ",TFMPATH
  152. $ write sys$output "PKPATH = ",PKPATH
  153. $ write sys$output "VFPATH = ",VFPATH
  154. $ write sys$output "HEADERPATH = ",HEADERPATH
  155. $ write sys$output "CONFIGPATH = ",CONFIGPATH
  156. $ write sys$output "FIGPATH = ",FIGPATH
  157. $ if TPIC .eqs. "" then -
  158.   write sys$output "TPIC support is not enabled."
  159. $ if TPIC .nes. "" then -
  160.   write sys$output "TPIC support is enabled."
  161. $ if FONTLIB .eqs. "" then -
  162.   write sys$output "FONTLIB support is not enabled."
  163. $ if FONTLIB .nes. "" then -
  164.   write sys$output "FONTLIB support is enabled."
  165. $ if EMTEX .eqs. "" then -
  166.   write sys$output "EMTEX support is not enabled."
  167. $ if EMTEX .nes. "" then -
  168.   write sys$output "EMTEX support is enabled."
  169. $ if DEBUG .eqs. "" then -
  170.   write sys$output "DEBUG support is not enabled."
  171. $ if DEBUG .nes. "" then -
  172.   write sys$output "DEBUG support is enabled."
  173. $ if VMS_ROOTED .eqs. "" then -
  174.   write sys$output PKPATH," is not a rooted directory."
  175. $ if VMS_ROOTED .nes. "" then -
  176.   write sys$output PKPATH," is a rooted directory."
  177. $ write sys$output " "
  178. $ inquire/nop ANSWER "Is this correct [yes]?  "
  179. $ if ANSWER .eqs. "" then ANSWER = 1
  180. $ if .not. ANSWER then goto get_definitions
  181. $ !
  182. $ if VMS_ROOTED .nes. "" then PKPATH = "''PKPATH'[%d]%f.PK"
  183. $ write sys$output " "
  184. $ write sys$output "Compiling sources ..."
  185. $ write sys$output " "
  186. $ write sys$output "afm2tfm.c ..."
  187. $ cc /define=(VMS'DEBUG') AFM2TFM.C
  188. $ write sys$output "color.c ..."
  189. $ cc /define=(VMS'DEBUG') COLOR.C
  190. $ write sys$output "dopage.c ..."
  191. $ cc /define=(VMS'DEBUG''EMTEX') DOPAGE.C
  192. $ write sys$output "dosecti