home *** CD-ROM | disk | FTP | other *** search
/ ftp.eri.u-tokyo.ac.jp / 2014.03.ftp.eri.u-tokyo.ac.jp.zip / ftp.eri.u-tokyo.ac.jp / pub / DOS / misc / hterm.lzh / INSTALL.BAT next >
DOS Batch File  |  1990-11-22  |  4KB  |  215 lines

  1. rem generated by bj1.1.1
  2. ECHO OFF
  3. REM
  4. REM install.bat: hterm install program
  5. REM   (generated by Batch Jack; structured batch preprocessor)
  6. REM
  7. CLS
  8. ECHO #########################################################
  9. ECHO #                                                       #
  10. ECHO #          INSTALL.BAT - hterm 2.6 installer            #
  11. ECHO #                                                       #
  12. ECHO #########################################################
  13. echo 
  14. bin\batchcom p > S.$
  15. IF NOT EXIST S.$  GOTO H1
  16.  GOTO H2
  17. :H1
  18. ECHO 
  19. ECHO Can't execute 'BATCHCOM' needed for installation procedure.
  20. GOTO END1
  21. :H2
  22. echo 
  23. IF M%1==M GOTO H3
  24.  GOTO H4
  25. :H3
  26. ECHO Install directory name is not specified.
  27. ECHO usage: install directory
  28. GOTO exit
  29. :H4
  30. :macherr
  31. echo 
  32. ECHO Your machine type
  33. echo 
  34. ECHO    1. PC-9801 or PC-286 series
  35. ECHO    2. PC-98XA
  36. ECHO    3. AX machines
  37. ECHO    4. IBM-PC or clone
  38. ECHO    5. J3100 series
  39. echo 
  40. bin\batchcom 0 "Please select [12345] "
  41. echo 
  42. SET P=
  43. IF ERRORLEVEL 5  GOTO H16
  44.  GOTO H17
  45. :H16
  46. IF ERRORLEVEL 6  GOTO H18
  47.  GOTO H19
  48. :H18
  49. GOTO macherr
  50. :H19
  51. ECHO ... Target machine is J3100 series.
  52. SET P=J3
  53.  GOTO H5
  54. :H17
  55. IF ERRORLEVEL 4  GOTO H20
  56.  GOTO H21
  57. :H20
  58. ECHO ... Target machine is IBM-PC or clone.
  59. SET P=PC
  60.  GOTO H5
  61. :H21
  62. IF ERRORLEVEL 3  GOTO H22
  63.  GOTO H23
  64. :H22
  65. ECHO ... Target machine is AX.
  66. SET P=AX
  67.  GOTO H5
  68. :H23
  69. IF ERRORLEVEL 2  GOTO H24
  70.  GOTO H25
  71. :H24
  72. ECHO ... Target machine is PC-98XA.
  73. SET P=XA
  74.  GOTO H5
  75. :H25
  76. IF ERRORLEVEL 1  GOTO H26
  77.  GOTO H27
  78. :H26
  79. ECHO ... Target machine is PC-9801 or PC-286 series.
  80. SET P=98
  81.  GOTO H5
  82. :H27
  83. IF ERRORLEVEL 0  GOTO H28
  84.  GOTO H29
  85. :H28
  86. GOTO macherr
  87.  GOTO H5
  88. :H29
  89. :H5
  90. IF EXIST %1\hterm.db GOTO H30
  91.  GOTO H31
  92. :H30
  93. del %1\hterm.db
  94. :H31
  95. :langerr
  96. echo 
  97. ECHO Which do you like Japanese or English for hterm help system.
  98. echo 
  99. ECHO   1. Japanese
  100. ECHO   2. English
  101. echo 
  102. bin\batchcom 0 "Please select [12] "
  103. echo 
  104. IF ERRORLEVEL 2  GOTO H37
  105.  GOTO H38
  106. :H37
  107. IF ERRORLEVEL 3  GOTO H39
  108.  GOTO H40
  109. :H39
  110. GOTO langerr
  111. :H40
  112. ECHO copying help database file 'hterm.db'
  113. copy bin\ahterm.db %1
  114. ren %1\ahterm.db hterm.db
  115.  GOTO H32
  116. :H38
  117. IF ERRORLEVEL 1  GOTO H41
  118.  GOTO H42
  119. :H41
  120. ECHO copying help database file 'hterm.db'
  121. copy bin\jhterm.db %1
  122. ren %1\jhterm.db hterm.db
  123.  GOTO H32
  124. :H42
  125. IF ERRORLEVEL 0  GOTO H43
  126.  GOTO H44
  127. :H43
  128. GOTO langerr
  129.  GOTO H32
  130. :H44
  131. :H32
  132. ECHO copying hterm executable file 'hterm.exe'
  133. IF EXIST %1\hterm.exe GOTO H45
  134.  GOTO H46
  135. :H45
  136. del %1\hterm.exe
  137. :H46
  138. copy bin\hterm.%P% %1
  139. ren %1\hterm.%P% hterm.exe
  140. ECHO copying windows3.0 pif file 'hterm.pif'
  141. IF EXIST %1\hterm.pif GOTO H47
  142.  GOTO H48
  143. :H47
  144. ren %1\hterm.pif htermpif.old
  145. :H48
  146. ECHO rename old hterm.pif to htermpif.old
  147. copy bin\hterm.pif %1
  148. IF %P%==PC GOTO H49
  149.  GOTO H50
  150. :H49
  151. ECHO copying hemacs executable file 'hemacs.exe'
  152. IF EXIST %1\hemacs.exe GOTO H51
  153.  GOTO H52
  154. :H51
  155. del %1\hemacs.exe
  156. :H52
  157. copy bin\hemacs.%P% %1
  158. ren %1\hemacs.%P% hemacs.exe
  159. :H50
  160. ECHO copying font file 'a14k14.hft'
  161. copy bin\a14k14.hft %1
  162. IF %P%==98 GOTO H53
  163.  GOTO H54
  164. :H53
  165. ECHO copying hkey executable 'hkey.exe'
  166. copy bin\hkey.98 %1\hkey.exe
  167. ECHO copying hkeyset executable 'hkeyset.exe'
  168. copy bin\hkeyset.98 %1\hkeyset.exe
  169. :H54
  170. IF %P%==XA GOTO H55
  171.  GOTO H56
  172. :H55
  173. ECHO copying hkey executable 'hkey.exe'
  174. copy bin\hkey.xa %1\hkey.exe
  175. ECHO copying hkeyset executable 'hkeyset.exe'
  176. copy bin\hkeyset.xa %1\hkeyset.exe
  177. :H56
  178. IF EXIST %1\hterm.set GOTO H57
  179.  GOTO H58
  180. :H57
  181. IF EXIST %1\htermset.old GOTO H59
  182.  GOTO H60
  183. :H59
  184. del %1\htermset.old
  185. :H60
  186. ECHO renaming old %1\hterm.set to htermset.old
  187. ren %1\hterm.set htermset.old
  188. :H58
  189. IF EXIST %HOME%\hterm.set GOTO H61
  190.  GOTO H62
  191. :H61
  192. IF EXIST %HOME%\htermset.old GOTO H63
  193.  GOTO H64
  194. :H63
  195. del %HOME%\htermset.old
  196. :H64
  197. ECHO renaming old %HOME%\hterm.set to htermset.old
  198. ren %HOME%\hterm.set htermset.old
  199. :H62
  200. echo 
  201. ECHO INSTALL has done.
  202. echo 
  203. echo 
  204. ECHO If you have old hterm.set anywhere, remove and rebuild it.
  205. ECHO Manuals of hterm exist in doc directory.
  206. ECHO amanual.doc is a manual in English and jmanual.doc is in Japanese.
  207. echo 
  208. ECHO Enjoy!
  209. :end1
  210. del S.$
  211. REM *-------------------------------------------------------------------*
  212. REM !  end of all
  213. REM *-------------------------------------------------------------------*
  214. :exit
  215.