home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / FONTL12A / EMTEX / NEWFONTS.CMD < prev    next >
OS/2 REXX Batch file  |  1990-09-25  |  10KB  |  382 lines

  1. @echo off
  2. rem newfonts.cmd
  3. if "%1" == "" goto usage
  4. if not "%2" == "" goto usage
  5. if exist %1 goto start
  6. echo Font list file %1 not found
  7. goto end
  8.  
  9. :usage
  10. echo Convert all font library files in the current directory to the new format
  11. echo  
  12. echo Usage:
  13. echo     newfonts fontlist
  14. echo  
  15. echo The argument must be the path name of the font list file distributed
  16. echo with emTeX. Example:
  17. echo     newfonts d:\emtex\fontlist
  18. echo  
  19. echo Be sure that you have at least 1.2 MB free disk space on the current drive!
  20. goto end
  21.  
  22. :start
  23. :lj_0
  24. if not exist lj_1500.fli goto lj_h
  25. echo Converting lj_1500.fli to lj_0.fli
  26. fontlib /2 /b300 /f%1 lj_1500 lj_0
  27. if errorlevel 1 goto error
  28. fontlib /t /f%1 lj_0
  29. if errorlevel 1 goto error
  30. del lj_1500.bak
  31. :lj_h
  32. if not exist lj_1643.fli goto lj_1
  33. echo Converting lj_1643.fli to lj_h.fli
  34. fontlib /2 /b300 /f%1 lj_1643 lj_h
  35. if errorlevel 1 goto error
  36. fontlib /t /f%1 lj_h
  37. if errorlevel 1 goto error
  38. del lj_1643.bak
  39. :lj_1
  40. if not exist lj_1800.fli goto lj_2
  41. echo Converting lj_1800.fli to lj_1.fli
  42. fontlib /2 /b300 /f%1 lj_1800 lj_1
  43. if errorlevel 1 goto error
  44. fontlib /t /f%1 lj_1
  45. if errorlevel 1 goto error
  46. del lj_1800.bak
  47. :lj_2
  48. if not exist lj_2160.fli goto lj_3
  49. echo Converting lj_2160.fli to lj_2.fli
  50. fontlib /2 /b300 /f%1 lj_2160 lj_2
  51. if errorlevel 1 goto error
  52. fontlib /t /f%1 lj_2
  53. if errorlevel 1 goto error
  54. del lj_2160.bak
  55. :lj_3
  56. if not exist lj_2592.fli goto lj_4
  57. echo Converting lj_2592.fli to lj_3.fli
  58. fontlib /2 /b300 /f%1 lj_2592 lj_3
  59. if errorlevel 1 goto error
  60. fontlib /t /f%1 lj_3
  61. if errorlevel 1 goto error
  62. del lj_2592.bak
  63. :lj_4
  64. if not exist lj_3110.fli goto lj_5a
  65. echo Converting lj_3110.fli to lj_4.fli
  66. fontlib /2 /b300 /f%1 lj_3110 lj_4
  67. if errorlevel 1 goto error
  68. fontlib /t /f%1 lj_4
  69. if errorlevel 1 goto error
  70. del lj_3110.bak
  71. :lj_5a
  72. if not exist lj_3732a.fli goto lj_5b
  73. echo Converting lj_3732a.fli to lj_5a.fli
  74. fontlib /2 /b300 /f%1 lj_3732a lj_5a
  75. if errorlevel 1 goto error
  76. fontlib /t /f%1 lj_5a
  77. if errorlevel 1 goto error
  78. del lj_3732a.bak
  79. :lj_5b
  80. if not exist lj_3732b.fli goto fx_0
  81. echo Converting lj_3732b.fli to lj_5b.fli
  82. fontlib /2 /b300 /f%1 lj_3732b lj_5b
  83. if errorlevel 1 goto error
  84. fontlib /t /f%1 lj_5b
  85. if errorlevel 1 goto error
  86. del lj_3732b.bak
  87. :fx_0
  88. if not exist fx_1200.fli goto fx_h
  89. echo Converting fx_1200.fli to fx_0.fli
  90. fontlib /2 /b240 /f%1 fx_1200 fx_0
  91. if errorlevel 1 goto error
  92. fontlib /t /f%1 fx_0
  93. if errorlevel 1 goto error
  94. del fx_1200.bak
  95. :fx_h
  96. if not exist fx_1315.fli goto fx_1
  97. echo Converting fx_1315.fli to fx_h.fli
  98. fontlib /2 /b240 /f%1 fx_1315 fx_h
  99. if errorlevel 1 goto error
  100. fontlib /t /f%1 fx_h
  101. if errorlevel 1 goto error
  102. del fx_1315.bak
  103. :fx_1
  104. if not exist fx_1440.fli goto fx_2
  105. echo Converting fx_1440.fli to fx_1.fli
  106. fontlib /2 /b240 /f%1 fx_1440 fx_1
  107. if errorlevel 1 goto error
  108. fontlib /t /f%1 fx_1
  109. if errorlevel 1 goto error
  110. del fx_1440.bak
  111. :fx_2
  112. if not exist fx_1728.fli goto fx_3
  113. echo Converting fx_1728.fli to fx_2.fli
  114. fontlib /2 /b240 /f%1 fx_1728 fx_2
  115. if errorlevel 1 goto error
  116. fontlib /t /f%1 fx_2
  117. if errorlevel 1 goto error
  118. del fx_1728.bak
  119. :fx_3
  120. if not exist fx_2074.fli goto fx_4
  121. echo Converting fx_2074.fli to fx_3.fli
  122. fontlib /2 /b240 /f%1 fx_2074 fx_3
  123. if errorlevel 1 goto error
  124. fontlib /t /f%1 fx_3
  125. if errorlevel 1 goto error
  126. del fx_2074.bak
  127. :fx_4
  128. if not exist fx_2488.fli goto fx_5
  129. echo Converting fx_2488.fli to fx_4.fli
  130. fontlib /2 /b240 /f%1 fx_2488 fx_4
  131. if errorlevel 1 goto error
  132. fontlib /t /f%1 fx_4
  133. if errorlevel 1 goto error
  134. del fx_2488.bak
  135. :fx_5
  136. if not exist fx_2986.fli goto p6l_0
  137. echo Converting fx_2986.fli to fx_5.fli
  138. fontlib /2 /b240 /f%1 fx_2986 fx_5
  139. if errorlevel 1 goto error
  140. fontlib /t /f%1 fx_5
  141. if errorlevel 1 goto error
  142. del fx_2986.bak
  143. :p6l_0
  144. if not exist p6l_900.fli goto p6l_h
  145. echo Converting p6l_900.fli to p6l_0.fli
  146. fontlib /2 /b180 /f%1 p6l_900 p6l_0
  147. if errorlevel 1 goto error
  148. fontlib /t /f%1 p6l_0
  149. if errorlevel 1 goto error
  150. del p6l_900.bak
  151. :p6l_h
  152. if not exist p6l_986.fli goto p6l_1
  153. echo Converting p6l_986.fli to p6l_h.fli
  154. fontlib /2 /b180 /f%1 p6l_986 p6l_h
  155. if errorlevel 1 goto error
  156. fontlib /t /f%1 p6l_h
  157. if errorlevel 1 goto error
  158. del p6l_986.bak
  159. :p6l_1
  160. if not exist p6l_1080.fli goto p6l_2
  161. echo Converting p6l_1080.fli to p6l_1.fli
  162. fontlib /2 /b180 /f%1 p6l_1080 p6l_1
  163. if errorlevel 1 goto error
  164. fontlib /t /f%1 p6l_1
  165. if errorlevel 1 goto error
  166. del p6l_1080.bak
  167. :p6l_2
  168. if not exist p6l_1296.fli goto p6l_3
  169. echo Converting p6l_1296.fli to p6l_2.fli
  170. fontlib /2 /b180 /f%1 p6l_1296 p6l_2
  171. if errorlevel 1 goto error
  172. fontlib /t /f%1 p6l_2
  173. if errorlevel 1 goto error
  174. del p6l_1296.bak
  175. :p6l_3
  176. if not exist p6l_1555.fli goto p6l_4
  177. echo Converting p6l_1555.fli to p6l_3.fli
  178. fontlib /2 /b180 /f%1 p6l_1555 p6l_3
  179. if errorlevel 1 goto error
  180. fontlib /t /f%1 p6l_3
  181. if errorlevel 1 goto error
  182. del p6l_1555.bak
  183. :p6l_4
  184. if not exist p6l_1866.fli goto p6l_5
  185. echo Converting p6l_1866.fli to p6l_4.fli
  186. fontlib /2 /b180 /f%1 p6l_1866 p6l_4
  187. if errorlevel 1 goto error
  188. fontlib /t /f%1 p6l_4
  189. if errorlevel 1 goto error
  190. del p6l_1866.bak
  191. :p6l_5
  192. if not exist p6l_2239.fli goto p6m_0
  193. echo Converting p6l_2239.fli to p6l_5.fli
  194. fontlib /2 /b180 /f%1 p6l_2239 p6l_5
  195. if errorlevel 1 goto error
  196. fontlib /t /f%1 p6l_5
  197. if errorlevel 1 goto error
  198. del p6l_2239.bak
  199. :p6m_0
  200. if not exist p6m_1800.fli goto p6m_h
  201. echo Converting p6m_1800.fli to p6m_0.fli
  202. fontlib /2 /b360 /f%1 p6m_1800 p6m_0
  203. if errorlevel 1 goto error
  204. fontlib /t /f%1 p6m_0
  205. if errorlevel 1 goto error
  206. del p6m_1800.bak
  207. :p6m_h
  208. if not exist p6m_1972.fli goto p6m_1
  209. echo Converting p6m_1972.fli to p6m_h.fli
  210. fontlib /2 /b360 /f%1 p6m_1972 p6m_h
  211. if errorlevel 1 goto error
  212. fontlib /t /f%1 p6m_h
  213. if errorlevel 1 goto error
  214. del p6m_1972.bak
  215. :p6m_1
  216. if not exist p6m_2160.fli goto p6m_2
  217. echo Converting p6m_2160.fli to p6m_1.fli
  218. fontlib /2 /b360 /f%1 p6m_2160 p6m_1
  219. if errorlevel 1 goto error
  220. fontlib /t /f%1 p6m_1
  221. if errorlevel 1 goto error
  222. del p6m_2160.bak
  223. :p6m_2
  224. if not exist p6m_2592.fli goto p6m_3
  225. echo Converting p6m_2592.fli to p6m_2.fli
  226. fontlib /2 /b360 /f%1 p6m_2592 p6m_2
  227. if errorlevel 1 goto error
  228. fontlib /t /f%1 p6m_2
  229. if errorlevel 1 goto error
  230. del p6m_2592.bak
  231. :p6m_3
  232. if not exist p6m_3110.fli goto p6m_4
  233. echo Converting p6m_3110.fli to p6m_3.fli
  234. fontlib /2 /b360 /f%1 p6m_3110 p6m_3
  235. if errorlevel 1 goto error
  236. fontlib /t /f%1 p6m_3
  237. if errorlevel 1 goto error
  238. del p6m_3110.bak
  239. :p6m_4
  240. if not exist p6m_3732.fli goto p6m_5
  241. echo Converting p6m_3732.fli to p6m_4.fli
  242. fontlib /2 /b360 /f%1 p6m_3732 p6m_4
  243. if errorlevel 1 goto error
  244. fontlib /t /f%1 p6m_4
  245. if errorlevel 1 goto error
  246. del p6m_3732.bak
  247. :p6m_5
  248. if not exist p6m_4479.fli goto p6h_0
  249. echo Converting p6m_4479.fli to p6m_5.fli
  250. fontlib /2 /b360 /f%1 p6m_4479 p6m_5
  251. if errorlevel 1 goto error
  252. fontlib /t /f%1 p6m_5
  253. if errorlevel 1 goto error
  254. del p6m_4479.bak
  255. :p6h_0
  256. if not exist p6h_1800.fli goto p6h_h
  257. echo Converting p6h_1800.fli to p6h_0.fli
  258. fontlib /2 /b360 /f%1 p6h_1800 p6h_0
  259. if errorlevel 1 goto error
  260. fontlib /t /f%1 p6h_0
  261. if errorlevel 1 goto error
  262. del p6h_1800.bak
  263. :p6h_h
  264. if not exist p6h_1972.fli goto p6h_1
  265. echo Converting p6h_1972.fli to p6h_h.fli
  266. fontlib /2 /b360 /f%1 p6h_1972 p6h_h
  267. if errorlevel 1 goto error
  268. fontlib /t /f%1 p6h_h
  269. if errorlevel 1 goto error
  270. del p6h_1972.bak
  271. :p6h_1
  272. if not exist p6h_2160.fli goto p6h_2
  273. echo Converting p6h_2160.fli to p6h_1.fli
  274. fontlib /2 /b360 /f%1 p6h_2160 p6h_1
  275. if errorlevel 1 goto error
  276. fontlib /t /f%1 p6h_1
  277. if errorlevel 1 goto error
  278. del p6h_2160.bak
  279. :p6h_2
  280. if not exist p6h_2592.fli goto p6h_3
  281. echo Converting p6h_2592.fli to p6h_2.fli
  282. fontlib /2 /b360 /f%1 p6h_2592 p6h_2
  283. if errorlevel 1 goto error
  284. fontlib /t /f%1 p6h_2
  285. if errorlevel 1 goto error
  286. del p6h_2592.bak
  287. :p6h_3
  288. if not exist p6h_3110.fli goto p6h_4
  289. echo Converting p6h_3110.fli to p6h_3.fli
  290. fontlib /2 /b360 /f%1 p6h_3110 p6h_3
  291. if errorlevel 1 goto error
  292. fontlib /t /f%1 p6h_3
  293. if errorlevel 1 goto error
  294. del p6h_3110.bak
  295. :p6h_4
  296. if not exist p6h_3732.fli goto p6h_5
  297. echo Converting p6h_3732.fli to p6h_4.fli
  298. fontlib /2 /b360 /f%1 p6h_3732 p6h_4
  299. if errorlevel 1 goto error
  300. fontlib /t /f%1 p6h_4
  301. if errorlevel 1 goto error
  302. del p6h_3732.bak
  303. :p6h_5
  304. if not exist p6h_4479.fli goto p6h_r
  305. echo Converting p6h_4479.fli to p6h_5.fli
  306. fontlib /2 /b360 /f%1 p6h_4479 p6h_5
  307. if errorlevel 1 goto error
  308. fontlib /t /f%1 p6h_5
  309. if errorlevel 1 goto error
  310. del p6h_4479.bak
  311. :p6h_r
  312. if not exist p6h_rest.fli goto ito_0
  313. echo Converting p6h_rest.fli to p6h_r.fli
  314. fontlib /2 /b360 /f%1 p6h_rest p6h_r
  315. if errorlevel 1 goto error
  316. fontlib /t /f%1 p6h_r
  317. if errorlevel 1 goto error
  318. del p6h_rest.bak
  319. :ito_0
  320. if not exist ito_800.fli goto ito_h
  321. echo Converting ito_800.fli to ito_0.fli
  322. fontlib /2 /b160 /f%1 ito_800 ito_0
  323. if errorlevel 1 goto error
  324. fontlib /t /f%1 ito_0
  325. if errorlevel 1 goto error
  326. del ito_800.bak
  327. :ito_h
  328. if not exist ito_876.fli goto ito_1
  329. echo Converting ito_876.fli to ito_h.fli
  330. fontlib /2 /b160 /f%1 ito_876 ito_h
  331. if errorlevel 1 goto error
  332. fontlib /t /f%1 ito_h
  333. if errorlevel 1 goto error
  334. del ito_876.bak
  335. :ito_1
  336. if not exist ito_960.fli goto ito_2
  337. echo Converting ito_960.fli to ito_1.fli
  338. fontlib /2 /b160 /f%1 ito_960 ito_1
  339. if errorlevel 1 goto error
  340. fontlib /t /f%1 ito_1
  341. if errorlevel 1 goto error
  342. del ito_960.bak
  343. :ito_2
  344. if not exist ito_1152.fli goto ito_3
  345. echo Converting ito_1152.fli to ito_2.fli
  346. fontlib /2 /b160 /f%1 ito_1152 ito_2
  347. if errorlevel 1 goto error
  348. fontlib /t /f%1 ito_2
  349. if errorlevel 1 goto error
  350. del ito_1152.bak
  351. :ito_3
  352. if not exist ito_1382.fli goto ito_4
  353. echo Converting ito_1382.fli to ito_3.fli
  354. fontlib /2 /b160 /f%1 ito_1382 ito_3
  355. if errorlevel 1 goto error
  356. fontlib /t /f%1 ito_3
  357. if errorlevel 1 goto error
  358. del ito_1382.bak
  359. :ito_4
  360. if not exist ito_1659.fli goto ito_5
  361. echo Converting ito_1659.fli to ito_4.fli
  362. fontlib /2 /b160 /f%1 ito_1659 ito_4
  363. if errorlevel 1 goto error
  364. fontlib /t /f%1 ito_4
  365. if errorlevel 1 goto error
  366. del ito_1659.bak
  367. :ito_5
  368. if not exist ito_1991.fli goto done
  369. echo Converting ito_1991.fli to ito_5.fli
  370. fontlib /2 /b160 /f%1 ito_1991 ito_5
  371. if errorlevel 1 goto error
  372. fontlib /t /f%1 ito_5
  373. if errorlevel 1 goto error
  374. del ito_1991.bak
  375. :done
  376. echo Done
  377. goto end
  378.  
  379. :error
  380. echo *** An error has occured!!!
  381. :end
  382.