home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / fwktl101.zip / MK_HWALP.CMD < prev    next >
OS/2 REXX Batch file  |  1996-05-28  |  2KB  |  56 lines

  1. @echo off
  2. cls
  3. if .%1 == ./R goto a
  4. if .%1 == ./r goto a
  5. echo.Part of the FWKTL(TM) Text_program Launcher kit, version 1.01.
  6. echo (C)Copyright Frederick W. Kantor 1996. All rights reserved.
  7. echo.
  8. echo. MK_HWALP.CMD for use with
  9. echo.              HELOWRLD.ASM,
  10. echo.              HELOWRLD.DEF,
  11. echo.              IBM Assembly Language Processor (ALP), Ver. 3.00.004 or later,
  12. echo.              LINK386, and
  13. echo.              FWKTRIM.EXE, version 1.01.
  14. echo.
  15. echo. Usage:   MK_HWALP /r "<enter>"
  16. echo.
  17. echo. Output:
  18. echo.          HELOWLD2.COM    for loading with FWKTL
  19. echo.          HELOWRLD.DLL    intermediate step, before stripping
  20. echo.          HELOWRLD.LST    code list, from ALP
  21. echo.          HELOWRLD.MAP    byproduct of LINK386
  22. echo.          HELOWRLD.OBJ    intermediate step, made by ALP
  23. echo.          REPORT          describing work done by ALP
  24. echo.
  25. goto z
  26. :a
  27. if not exist helowrld.asm goto h0
  28. if not exist helowrld.def goto h1
  29. fwktrim /ver
  30. if errorlevel 102 goto h2
  31. if not errorlevel 101 goto h2
  32. echo on
  33. alp +Sme +Fl -Sfs -Sc +M:ALL+ +Lp:ALL helowrld.asm > report
  34. if errorlevel 1 goto z
  35. LINK386 /ALIGN:4 /PM:PM /BASE:0x010000 /RUNFROMVDM /NOS /L /M /NOF /NOP helowrld.obj,helowrld.dll,helowrld.map,,helowrld.DEF
  36. if errorlevel 1 goto z
  37. fwktrim < helowrld.dll > helowld2.com
  38. goto z
  39. :h0
  40. echo.
  41. echo. Did not find  HELOWRLD.ASM
  42. goto x
  43. :h1
  44. echo.
  45. echo. Did not find  HELOWRLD.DEF
  46. goto x
  47. :h2
  48. echo.
  49. echo. Need FWKTRIM.EXE version 1.01.
  50. :x
  51. echo.
  52. echo. Execution aborted.
  53. :z
  54. @echo off
  55. echo.
  56.