home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
fwktl101.zip
/
MK_ALP.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-05-28
|
2KB
|
74 lines
@echo off
cls
if .%1 == . goto a
if %1 == ? goto a
if %1 == /? goto a
if %1 == /* goto a
if %1 == /h goto a
if %1 == /H goto a
goto b
:a
echo.Part of the FWKTL(TM) Text_program Launcher kit, version 1.01.
echo (C)Copyright Frederick W. Kantor 1996. All rights reserved.
echo.
echo. MK_ALP.CMD for use with
echo. IBM Assembly Language Processor (ALP), Ver. 3.00.004 or later,
echo. LINK386, and
echo. FWKTRIM.EXE, version 1.01.
echo.
echo. Usage: MK_ALP FILENAME (k) "<enter>"
echo.
echo. where option k keeps the intermediate files (see below)
echo.
echo. Important: for input, use only the filename, without any file extension
echo.
echo. Input files: FILENAME.ASM, FILENAME.DEF
echo.
echo. Output files: FILENAME.COM for loading with FWKTL
echo.
echo. IF k option: FILENAME.OBJ intermediate step, made by ALP
echo. FILENAME.LST code list, from ALP
echo. REPORT describing work done by ALP
echo. FILENAME.MAP byproduct of LINK386
echo. FILENAME.DLL intermediate step, before stripping
goto z
:b
if not exist %1.asm goto h0
if not exist %1.def goto h1
fwktrim /ver
if errorlevel 102 goto h2
if not errorlevel 101 goto h2
echo on
alp +Sme +Fl -Sfs -Sc +M:ALL+ +Lp:ALL %1.asm > report
if errorlevel 1 goto y
LINK386 /ALIGN:4 /PM:PM /BASE:0x010000 /RUNFROMVDM /NOS /L /M /NOF /NOP %1.obj,%1.dll,%1.map,,%1.DEF
if errorlevel 1 goto y
fwktrim < %1.dll > %1.com
@echo off
if .%2 == .k goto y
if .%2 == .K goto y
if exist %1.DLL del %1.DLL
if exist %1.LST del %1.LST
if exist %1.MAP del %1.MAP
if exist %1.OBJ del %1.OBJ
if exist REPORT del REPORT
goto y
:h0
echo.
echo. Did not find %1.ASM
goto x
:h1
echo.
echo. Did not find %1.DEF
goto x
:h2
echo.
echo. Need FWKTRIM.EXE version 1.01.
:x
echo.
echo. Execution aborted.
:y
@echo off
echo.
:z