home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
turbopas
/
tptc17.arc
/
T2C.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-03-26
|
493b
|
26 lines
echo off
rem batch driver to translate pascal to c with include file post-processing
rem insert your desired "default options" here
set tptc=-l -wj: -sc:\inc -i
rem check for proper command-line options
if .%2 == . goto usage
if exist %1 goto usage
tptc %1 %3 %4 %5 %6 %7 %8 %9
if errorlevel 1 goto exit
uninc %1.c %2
goto exit
:usage
echo.
echo usage: t2c SOURCEFILE DESTDIR
echo ex: t2c tptc \dest
echo (do not specify input file extension)
:exit
echo.