home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / texipf21.zip / texi2ipf / texi2i.cmd < prev    next >
OS/2 REXX Batch file  |  1996-12-02  |  760b  |  32 lines

  1. @echo off
  2. if not "%IPFC%"=="" goto IPFCSET
  3. echo.
  4. echo *Warning*: The IPFC environment variable should be set to the IPFC
  5. echo subdirectory (normally in TOOLKT20) for IPFC to work correctly.
  6. echo.
  7. :IPFCset
  8. if not "%1"=="" goto withArgs
  9. echo Usage: %0 texinfo_file [!]
  10. echo.
  11. echo   Do *not* specify extension in texinfo filename.
  12. echo   "!" option keeps the IPF source file.
  13. goto End
  14. :withArgs
  15. if not exist %1.tex goto no_tex
  16. %0pf %1.tex >%1.IPF
  17. goto compile
  18. :no_tex
  19. if not exist %1.texi goto no_texi
  20. %0pf %1.texi >%1.IPF
  21. goto compile
  22. :no_texi
  23. if not exist %1.texinfo goto no_thing
  24. %0pf %1.texinfo >%1.IPF
  25. goto compile
  26. :no_thing
  27. echo %1.tex[i[nfo]] not found. Please do not specify an extension.
  28. goto end
  29. :compile
  30. ipfc %1 /INF /S
  31. if not "%2"=="!" del %1.IPF
  32. :end