home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / FONTL12A / EMTEX / OLDFONTS.CMD < prev   
OS/2 REXX Batch file  |  1991-04-26  |  9KB  |  374 lines

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