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

  1. @echo off
  2. rem fli_lj.cmd
  3. rem This should be done before running this batch file:
  4. rem    mfjob all m=lj
  5. rem    mfjob latex m=lj
  6. rem    mfjob emsy m=lj
  7. rem    mfjob gftodvi
  8. set fli_opt=
  9. :next_arg
  10. if "%1"=="/v" goto set_v
  11. if "%1"=="/V" goto set_v
  12. if "%1"=="-v" goto set_v
  13. if "%1"=="-V" goto set_v
  14. if "%1"=="test" goto test
  15. if "%1"=="TEST" goto test
  16. if "%1"=="Test" goto test
  17. if "%1"=="" goto usage
  18. if "%2"=="" goto start
  19. :usage
  20. echo Usage: fli_lj [/v] source_directory\
  21. echo Usage: fli_lj test
  22. goto end
  23.  
  24. :set_v
  25. set fli_opt=/v
  26. shift
  27. goto next_arg
  28.  
  29. :start
  30. set fli_opt=%fli_opt% /b300 /f%EMTEX%\emtex\fontlist
  31. fontlib /c %fli_opt% lj_0 =%1%%rdpi :0 +*.pk 240 +*.pk 270 +*.pk
  32. if errorlevel 1 goto error
  33. fontlib /c %fli_opt% lj_h =%1%%rdpi :h +*.pk
  34. if errorlevel 1 goto error
  35. fontlib /c %fli_opt% lj_1 =%1%%rdpi :1 +*.pk
  36. if errorlevel 1 goto error
  37. fontlib /c %fli_opt% lj_2 =%1%%rdpi :2 +*.pk
  38. if errorlevel 1 goto error
  39. fontlib /c %fli_opt% lj_3 =%1%%rdpi :3 +*.pk
  40. if errorlevel 1 goto error
  41. fontlib /c %fli_opt% lj_4 =%1%%rdpi :4 +*.pk
  42. if errorlevel 1 goto error
  43. fontlib /c %fli_opt% lj_5a =%1%%rdpi :5 +*.pk
  44. if errorlevel 1 goto error
  45. fontlib /c %fli_opt% lj_5b =%1%%rdpi :5 +cmf*.pk
  46. if errorlevel 1 goto error
  47. fontlib %fli_opt% lj_5a :5 -cmf*
  48. if errorlevel 1 goto error
  49. del lj_5a.bak
  50. fontlib /c %fli_opt% lj_sli =%1%%rdpi :6 +*.pk :7 +*.pk :8 +*.pk :9 +*.pk
  51. if errorlevel 1 goto error
  52. :test
  53. fontlib /t %fli_opt% lj_0
  54. if errorlevel 1 goto error
  55. fontlib /t %fli_opt% lj_h
  56. if errorlevel 1 goto error
  57. fontlib /t %fli_opt% lj_1
  58. if errorlevel 1 goto error
  59. fontlib /t %fli_opt% lj_2
  60. if errorlevel 1 goto error
  61. fontlib /t %fli_opt% lj_3
  62. if errorlevel 1 goto error
  63. fontlib /t %fli_opt% lj_4
  64. if errorlevel 1 goto error
  65. fontlib /t %fli_opt% lj_5a
  66. if errorlevel 1 goto error
  67. fontlib /t %fli_opt% lj_5b
  68. if errorlevel 1 goto error
  69. fontlib /t %fli_opt% lj_sli
  70. if errorlevel 1 goto error
  71. goto end
  72.  
  73. :error
  74. echo *** Error!
  75. :end
  76. set fli_opt=
  77.